Fixing NPE when socket disconnects after the initial check if == null

pull/7/head
Vitor Pamplona 2023-01-20 18:57:50 -03:00
rodzic 207f03bb06
commit 135b24df6c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -114,7 +114,7 @@ class Relay(
if (filters.isNotEmpty()) {
val request = """["REQ","$requestId",${filters.joinToString(",") { it.toJson() }}]"""
//println("FILTERSSENT " + """["REQ","$requestId",${filters.joinToString(",") { it.toJson() }}]""")
socket!!.send(request)
socket?.send(request)
}
}
}