mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-11 01:09:36 -04:00
fix hang on shutdown
This commit is contained in:
parent
a04d4e12c5
commit
89c51ff069
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue