mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: set socket to null after close
This commit is contained in:
parent
8e2e97b250
commit
7086444917
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue