From 0ef05de889b999c4a9f4850cdd08f5e363fa5ec8 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Mon, 10 Sep 2018 13:42:04 -0600 Subject: [PATCH] Add sleep to prevent spinning thread --- src/rpc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc.rs b/src/rpc.rs index 3761511a21..ee9a368f46 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -58,6 +58,7 @@ impl JsonRpcService { server.unwrap().close(); break; } + sleep(Duration::from_millis(100)); } () })