1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Fix error handling in client actions.

Thanks to Yacine.
This commit is contained in:
Juliusz Chroboczek 2021-02-17 20:55:11 +01:00
parent be2f2d7cb3
commit ddb6039fa6

View file

@ -831,7 +831,10 @@ func clientLoop(c *webClient, ws *websocket.Conn) error {
c.actions = nil
c.mu.Unlock()
for _, a := range actions {
handleAction(c, a)
err := handleAction(c, a)
if err != nil {
return err
}
}
case <-ticker.C:
if time.Since(readTime) > 75*time.Second {