Commit ddb6039f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix error handling in client actions.

Thanks to Yacine.
parent be2f2d7c
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment