This commit is contained in:
poiuty 2022-08-15 21:45:28 +03:00
parent 1f059fad30
commit ce0a824aaf

View file

@ -210,7 +210,7 @@ func xWorker(workerData Info) {
if err != nil { if err != nil {
fmt.Println(err.Error(), workerData.room) fmt.Println(err.Error(), workerData.room)
if workerData.Income > 1 && websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway) { if workerData.Income > 1 && websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway) {
reconnectRoom(workerData) go reconnectRoom(workerData)
} }
return return
} }