From: Sergey Matveev Date: Wed, 13 Aug 2014 15:13:12 +0000 (+0400) Subject: Remove goroutines that lead to possible races X-Git-Tag: 1.0~6 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5c79c4235ec745fa47c1f176657287dab4f61ed5;p=goircd.git Remove goroutines that lead to possible races --- diff --git a/daemon.go b/daemon.go index 1bb3959..06916b0 100644 --- 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") }