Add sleep to prevent spinning thread
This commit is contained in:
parent
a093d5c809
commit
0ef05de889
|
@ -58,6 +58,7 @@ impl JsonRpcService {
|
|||
server.unwrap().close();
|
||||
break;
|
||||
}
|
||||
sleep(Duration::from_millis(100));
|
||||
}
|
||||
()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue