mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
fix hang on shutdown
This commit is contained in:
parent
a04d4e12c5
commit
89c51ff069
@ -479,6 +479,7 @@ Stream<T> processStreamJson<T>(
|
||||
}
|
||||
case messageStreamClose:
|
||||
{
|
||||
port.close();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@ -1551,6 +1552,7 @@ class VeilidFFI extends Veilid {
|
||||
final recvPort = ReceivePort('shutdown_veilid_core');
|
||||
final sendPort = recvPort.sendPort;
|
||||
_shutdownVeilidCore(sendPort.nativePort);
|
||||
|
||||
return processFutureVoid(recvPort.first);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user