Move common stuff

This commit is contained in:
Nonoo 2020-10-26 08:56:30 +01:00
parent d97575cc0e
commit d764108359
4 changed files with 25 additions and 40 deletions

View file

@ -261,21 +261,11 @@ func (s *controlStream) start() error {
return err
}
if err := s.common.start(); err != nil {
return err
}
s.common.pkt7.startPeriodicSend(&s.common, 2, false)
if err := s.common.sendPkt3(); err != nil {
return err
}
if err := s.common.waitForPkt4Answer(); err != nil {
return err
}
if err := s.common.sendPkt6(); err != nil {
return err
}
if err := s.common.waitForPkt6Answer(); err != nil {
return err
}
s.common.pkt0.startPeriodicSend(&s.common)
if err := s.sendPktLogin(); err != nil {