summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/app.go b/app.go
index 485521f..3b34bd8 100644
--- a/app.go
+++ b/app.go
@@ -241,6 +241,11 @@ func (app *App) eventLoop() {
app.win.Draw(currentMembers)
}
}
+ go func() {
+ // drain events until we close
+ for range app.events {
+ }
+ }()
}
// ircLoop maintains a connection to the IRC server by connecting and then