mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
add panic handler to async client/channel writes
See #2113 for motivation
This commit is contained in:
parent
1d8bbde95c
commit
dfe2a21b17
2 changed files with 4 additions and 0 deletions
|
|
@ -1773,6 +1773,8 @@ func (client *Client) wakeWriter() {
|
|||
}
|
||||
|
||||
func (client *Client) writeLoop() {
|
||||
defer client.server.HandlePanic()
|
||||
|
||||
for {
|
||||
client.performWrite(0)
|
||||
client.writebackLock.Unlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue