[Fix] Race condition in NetworkManager destructor.
This commit is contained in:
parent
b5c6b523a3
commit
ea6853f037
@ -28,10 +28,10 @@ NetworkManager::NetworkManager(const std::string& db_path) :
|
||||
}
|
||||
|
||||
NetworkManager::~NetworkManager(void) {
|
||||
stop();
|
||||
for(auto& pair : _active_machines) {
|
||||
_save_machine_vfs(pair.second.machine.get());
|
||||
}
|
||||
stop();
|
||||
}
|
||||
|
||||
void NetworkManager::stop(void) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user