fix(tcp): cancel pending connects on disconnect and propagate remote close
This commit is contained in:
1 parent
7a2bb20bf7
commit
929c1c3d28
2 files changed
+5
-3
No files matched your search
@@ -22,9 +22,6 @@ class MeshCoreTcpManager {
|
||||
}
|
||||
|
||||
Future<void> disconnect() async {
|
||||
if (!_service.isConnected && _service.activeEndpoint == null) {
|
||||
return;
|
||||
}
|
||||
_debugLog?.info('TcpManager.disconnect', tag: 'TCP');
|
||||
await _service.disconnect();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user