mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-05 06:25:18 +00:00
Move common stuff
This commit is contained in:
parent
d97575cc0e
commit
d764108359
4 changed files with 25 additions and 40 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue