From 6859516f81098d97e9baa021d2ae534e50b15712 Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Sat, 20 Aug 2016 22:43:20 +0200 Subject: [PATCH] =?UTF-8?q?Add=20log=20when=20threads=20=C2=AB=C2=A0sender?= =?UTF-8?q?=C2=A0=C2=BB=20and=20=C2=AB=C2=A0receiver=C2=A0=C2=BB=20end.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/xmpp/xmpp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xmpp/xmpp.go b/src/xmpp/xmpp.go index 3137897..72d79db 100644 --- a/src/xmpp/xmpp.go +++ b/src/xmpp/xmpp.go @@ -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.