mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-02 20:02:26 -05:00
fix: set socket to null after close
This commit is contained in:
@@ -50,10 +50,10 @@ class TCPInterface(service: RadioInterfaceService, private val address: String)
|
||||
val s = socket
|
||||
if (s != null) {
|
||||
debug("Closing TCP socket")
|
||||
socket = null
|
||||
outStream.close()
|
||||
inStream.close()
|
||||
s.close()
|
||||
socket = null
|
||||
}
|
||||
super.onDeviceDisconnect(waitForStopped)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user