Fix bug with socket

This commit is contained in:
Christoph Hagen 2023-09-07 16:06:42 +02:00
parent ef71e42341
commit fe5128fa8b

View File

@ -141,7 +141,7 @@ final class DeviceManager {
guard let socket = connection else {
return
}
try? socket.close().wait()
socket.close().whenSuccess { log("Socket closed") }
connection = nil
log("Removed device connection")
}