mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-21 06:13:43 +00:00
Move pkt0 out of the control stream module
This commit is contained in:
parent
ad8a7f2072
commit
334583ce44
3 changed files with 92 additions and 24 deletions
|
|
@ -23,6 +23,7 @@ type streamCommon struct {
|
|||
readerCloseNeededChan chan bool
|
||||
readerCloseFinishedChan chan bool
|
||||
|
||||
pkt0 pkt0Type
|
||||
pkt7 pkt7Type
|
||||
}
|
||||
|
||||
|
|
@ -170,6 +171,7 @@ func (s *streamCommon) init(name string, portNumber int) error {
|
|||
}
|
||||
|
||||
func (s *streamCommon) deinit() {
|
||||
s.pkt0.stopPeriodicSend()
|
||||
s.pkt7.stopPeriodicSend()
|
||||
if s.gotRemoteSID && s.conn != nil {
|
||||
_ = s.sendDisconnect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue