1
0
Fork 0

Add log when threads « sender » and « receiver » end.

This commit is contained in:
Chteufleur 2016-08-20 22:43:20 +02:00
parent 72135514fc
commit 6859516f81
1 changed files with 3 additions and 0 deletions

View File

@ -169,6 +169,7 @@ func (x *XMPP) sender() {
// Close the stream. Note: relies on common element name for all types of
// XMPP connection.
log.Println("Close XMPP stream")
x.stream.SendEnd(&xml.EndElement{xml.Name{"stream", "stream"}})
}
@ -214,6 +215,8 @@ func (x *XMPP) receiver() {
x.In <- v
}
}
log.Println("Close XMPP receiver")
}
// BUG(matt): Filter channels are not closed when the stream is closed.