Run commands as a goroutine

This commit is contained in:
Chris Rhodes 2013-02-17 10:15:10 -08:00
parent e8eba53828
commit 8007846d51
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}