Skip to content

Commit

Permalink
Merge pull request #4 from AlphaWallet/fix-crash
Browse files Browse the repository at this point in the history
Attempt to fix crash when accessing Dictionary.subscript.getter
  • Loading branch information
hboon authored Apr 7, 2021
2 parents ac87fe6 + c22cb1d commit cce12b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3swift/Promises/Classes/Promise+Batching.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class JSONRPCrequestDispatcher {
}
let requestID = request.id
let promiseToReturn = Promise<JSONRPCresponse>.pending()
self.queue.async {
self.lockQueue.async {
if self.promisesDict[requestID] != nil {
promiseToReturn.resolver.reject(Web3Error.processingError("Request ID collision"))
}
Expand Down

0 comments on commit cce12b1

Please sign in to comment.