Fix: Connection not cleaned up after unexpected close be peer

This commit is contained in:
Leon Böttger committed 2025-10-05 13:07:10 +02:00
1 parent dda001cb1a
commit 86afa8a206
1 file changed
+2
@@ -173,6 +173,7 @@ class NearbyConnection {
self.connectionClosedByPeer {
self.lastError = NearbyError.protocolError("Error.ClosedByPeer".localized())
self.disconnect()
self.connection.cancel()
}
return
}
@@ -220,6 +221,7 @@ class NearbyConnection {
self.connectionClosedByPeer {
self.lastError = NearbyError.protocolError("Error.ClosedByPeer".localized())
self.disconnect()
self.connection.cancel()
}
return