From cdee2181337b36116d17163518de655877d02b16 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 8 Sep 2023 12:59:54 -0600 Subject: [PATCH] mutex release bugfix --- lib/electrumx_rpc/electrumx.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/electrumx_rpc/electrumx.dart b/lib/electrumx_rpc/electrumx.dart index a93e1656e..7ee8063cd 100644 --- a/lib/electrumx_rpc/electrumx.dart +++ b/lib/electrumx_rpc/electrumx.dart @@ -123,7 +123,9 @@ class ElectrumX { case TorConnectionStatus.connected: case TorConnectionStatus.disconnected: - _torConnectingLock.release(); + if (_torConnectingLock.isLocked) { + _torConnectingLock.release(); + } _requireMutex = false; break; }