]> Cypherpunks.ru repositories - goircd.git/commitdiff
Fix unnecessary unlocking causing panics 1.6
authorSergey Matveev <stargrave@stargrave.org>
Mon, 19 Sep 2016 09:23:28 +0000 (12:23 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 19 Sep 2016 09:23:41 +0000 (12:23 +0300)
daemon.go

index 0f2b9298d35b834a8fbd395397f267af12a47cf1..8e22caf96a10a0af87de7243ec422d7f6d58d6df 100644 (file)
--- 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 {
                                        if r, found := rooms[room]; found {
                                                roomSinks[r] <- ClientEvent{client, EventDel, ""}
                                        } else {
-                                               roomsM.RUnlock()
                                                client.ReplyNoChannel(room)
                                                client.ReplyNoChannel(room)
-                                               continue
                                        }
                                }
                                roomsM.RUnlock()
                                        }
                                }
                                roomsM.RUnlock()