summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2016-09-19 12:23:28 +0300
committerSergey Matveev <stargrave@stargrave.org>2016-09-19 12:23:41 +0300
commit0a673940236fffdf6d2aff111a4d35346472ecbc (patch)
tree61fbb2a1afcc08e52c879366c9afbef08e9f834c
parenta9e5e5cd2f6acb7d5f243e85f71b3cc0e27137df (diff)
downloadgoircd-1.6.tar.xz
Fix unnecessary unlocking causing panics1.6
-rw-r--r--daemon.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/daemon.go b/daemon.go
index 0f2b929..8e22caf 100644
--- a/daemon.go
+++ b/daemon.go
@@ -445,9 +445,7 @@ func Processor(events chan ClientEvent, finished chan struct{}) {
if r, found := rooms[room]; found {
roomSinks[r] <- ClientEvent{client, EventDel, ""}
} else {
- roomsM.RUnlock()
client.ReplyNoChannel(room)
- continue
}
}
roomsM.RUnlock()