mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-03 04:04:34 +02:00
Fix hang condition on kick.
This commit is contained in:
parent
50540d26e9
commit
b94911f052
@ -93,7 +93,6 @@ func (ch *Channel) HandleMsg(m Message) {
|
|||||||
}
|
}
|
||||||
err := user.Send(m)
|
err := user.Send(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ch.Leave(user)
|
|
||||||
user.Close()
|
user.Close()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user