Clears the socket from memory upon closing.

This commit is contained in:
Vitor Pamplona
2025-08-15 08:40:33 -04:00
parent 81db455bfb
commit c9b16309e2
2 changed files with 13 additions and 3 deletions
@@ -207,7 +207,8 @@ open class BasicRelayClient(
code: Int?,
response: String?,
) {
socket?.disconnect() // 1000, "Normal close"
// socket is already closed
// socket?.disconnect()
// checks if this is an actual failure. Closing the socket generates an onFailure as well.
if (!(socket == null && (t.message == "Socket is closed" || t.message == "Socket closed"))) {