wasm fixes

This commit is contained in:
John Smith
2023-03-12 12:24:21 -04:00
parent f8060715ce
commit 0ea858b08e
10 changed files with 84 additions and 74 deletions

View File

@@ -471,13 +471,14 @@ impl VeilidAPI {
// Purge connection table
let connection_manager = self.network_manager()?.connection_manager();
connection_manager.shutdown().await;
connection_manager.startup().await;
// Eliminate last_connections from routing table entries
self.network_manager()?
.routing_table()
.purge_last_connections();
connection_manager.startup().await;
Ok("Connections purged".to_owned())
} else if args[0] == "routes" {
// Purge route spec store