diff options
-rw-r--r-- | xmpp.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,6 +28,7 @@ func (l *Limox) xmpp(jid string, pwd string) { receiver := make(chan xml.Token) termination := make(chan bool) go rxRoutine(conn, receiver, termination) + defer func() { termination <- true }() enc := xml.NewEncoder(conn) dbg := xml.NewEncoder(os.Stdout) @@ -42,7 +43,6 @@ func (l *Limox) xmpp(jid string, pwd string) { case ev := <-l.GuiEvents: switch ev { case Disconnect: - termination <- true return default: log.Fatalf("Unknown GuiEvent '%d'!\n", ev) |