Move pkt0 out of the control stream module

This commit is contained in:
Nonoo 2020-10-25 10:53:46 +01:00
parent ad8a7f2072
commit 334583ce44
3 changed files with 92 additions and 24 deletions

View file

@ -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()