From 8007846d51174dcc381e3bf8b18ee2d0ccdfd406 Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Sun, 17 Feb 2013 10:15:10 -0800 Subject: [PATCH] Run commands as a goroutine --- client/dispatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/dispatch.go b/client/dispatch.go index a501e14..c641abc 100644 --- a/client/dispatch.go +++ b/client/dispatch.go @@ -259,7 +259,7 @@ func (conn *Conn) dispatch(line *Line) { func (conn *Conn) command(line *Line) { command := conn.commands.match(strings.ToLower(line.Message())) if command != nil { - command.Handle(conn, line) + go command.Handle(conn, line) } }