Forces the closure. The method close wasn't closing all connections.

This commit is contained in:
Vitor Pamplona
2023-11-28 18:00:44 -05:00
parent ab93a39ad6
commit 1c545ee33a
@@ -263,7 +263,7 @@ class Relay(
checkNotInMainThread() checkNotInMainThread()
closingTimeInSeconds = TimeUtils.now() closingTimeInSeconds = TimeUtils.now()
socket?.close(1000, "Normal close") socket?.cancel()
socket = null socket = null
isReady = false isReady = false
usingCompression = false usingCompression = false