]> Cypherpunks.ru repositories - goircd.git/commitdiff
Remove goroutines that lead to possible races
authorSergey Matveev <stargrave@stargrave.org>
Wed, 13 Aug 2014 15:13:12 +0000 (19:13 +0400)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 13 Aug 2014 15:13:12 +0000 (19:13 +0400)
daemon.go

index 1bb39598d3c9181678fda83a01803c7f18f6ce6f..06916b0d6c39649dd4e5d519a72347fa72125ffd 100644 (file)
--- a/daemon.go
+++ b/daemon.go
@@ -323,7 +323,7 @@ func (daemon *Daemon) Processor(events <-chan ClientEvent) {
                        case "LIST":
                                daemon.SendList(client, cols)
                        case "LUSERS":
-                               go daemon.SendLusers(client)
+                               daemon.SendLusers(client)
                        case "MODE":
                                if len(cols) == 1 || len(cols[1]) < 1 {
                                        client.ReplyNotEnoughParameters("MODE")
@@ -436,7 +436,7 @@ func (daemon *Daemon) Processor(events <-chan ClientEvent) {
                                }
                                cols := strings.Split(cols[1], " ")
                                nicknames := strings.Split(cols[len(cols)-1], ",")
-                               go daemon.SendWhois(client, nicknames)
+                               daemon.SendWhois(client, nicknames)
                        default:
                                client.ReplyNicknamed("421", command, "Unknown command")
                        }