Fix panic when terminating client
This commit is contained in:
parent
019317f4f2
commit
ea34f7b9b3
1 changed files with 0 additions and 7 deletions
|
@ -140,13 +140,6 @@ func (c *webSocketClient) Terminate(reason string) {
|
|||
}
|
||||
c.terminated = true
|
||||
c.conn.Close()
|
||||
|
||||
go func() {
|
||||
time.Sleep(5 * time.Second)
|
||||
c.wgEvents.Wait()
|
||||
close(c.events)
|
||||
close(c.commands)
|
||||
}()
|
||||
}
|
||||
|
||||
func (c *webSocketClient) Terminated() bool {
|
||||
|
|
Loading…
Reference in a new issue