mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 11:47:24 +01:00
Sends a disconnect signal to the clients
This commit is contained in:
@@ -219,11 +219,9 @@ open class BasicRelayClient(
|
||||
markConnectionAsClosed()
|
||||
|
||||
Log.w(logTag, "OnFailure $code $response ${t.message} $socket")
|
||||
listener.onError(
|
||||
this@BasicRelayClient,
|
||||
"",
|
||||
Error("WebSocket Failure. Response: $code $response. Exception: ${t.message}", t),
|
||||
)
|
||||
|
||||
listener.onRelayStateChange(this@BasicRelayClient, RelayState.DISCONNECTED)
|
||||
listener.onError(this@BasicRelayClient, "", Error("WebSocket Failure. Response: $code $response. Exception: ${t.message}", t))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user