From c22cb1d1a390a156619e8b42b94a5dbbf0a57a57 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Wed, 7 Apr 2021 12:21:30 +0800 Subject: [PATCH] Attempt to fix random crashes --- web3swift/Promises/Classes/Promise+Batching.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3swift/Promises/Classes/Promise+Batching.swift b/web3swift/Promises/Classes/Promise+Batching.swift index 42f79713..9fc71eef 100644 --- a/web3swift/Promises/Classes/Promise+Batching.swift +++ b/web3swift/Promises/Classes/Promise+Batching.swift @@ -46,7 +46,7 @@ public class JSONRPCrequestDispatcher { } let requestID = request.id let promiseToReturn = Promise.pending() - self.queue.async { + self.lockQueue.async { if self.promisesDict[requestID] != nil { promiseToReturn.resolver.reject(Web3Error.processingError("Request ID collision")) }