Forces websocket closure onFailure

This commit is contained in:
Vitor Pamplona 2023-11-30 14:51:55 -05:00
parent 3d1310295b
commit 05596cb9bf

View File

@ -172,7 +172,7 @@ class Relay(
errorCounter++
socket?.close(1000, "Normal close")
socket?.cancel() // 1000, "Normal close"
// Failures disconnect the relay.
markConnectionAsClosed()