mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-12 20:02:01 +10:00
fix(tcp): cancel pending connects on disconnect and propagate remote close
This commit is contained in:
@@ -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