fergot whati changed

This commit is contained in:
Joren
2024-05-02 16:49:32 +02:00
parent 9f3955cdba
commit e3229cb4c8
2 changed files with 31 additions and 1 deletions

View File

@ -339,11 +339,11 @@ class GoodSoftware (private val activity: MainActivity) {
e.printStackTrace()
}
}
fun disconnect(connectionResult: ConnectionResult) {
val (socket, reader, writer, _, _, _) = connectionResult
try {
writer.println("END_OF_COMMUNICATION")
println("Disconnect")
writer.close()
reader.close()
socket.close()