mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 12:19:24 +00:00
send next available request in queue if isNotEmpty
This commit is contained in:
parent
6ca51c99c9
commit
ba41094ed2
1 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,14 @@ class JsonRPC {
|
||||||
level: LogLevel.Info,
|
level: LogLevel.Info,
|
||||||
);
|
);
|
||||||
_socket?.destroy();
|
_socket?.destroy();
|
||||||
|
|
||||||
|
if (_requestQueue.isNotEmpty) {
|
||||||
|
Logging.instance.log(
|
||||||
|
"JsonRPC doneHandler: sending next request in queue",
|
||||||
|
level: LogLevel.Warning,
|
||||||
|
);
|
||||||
|
_sendNextAvailableRequest();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _onReqCompleted(_JsonRPCRequest req) async {
|
Future<void> _onReqCompleted(_JsonRPCRequest req) async {
|
||||||
|
|
Loading…
Reference in a new issue