Merge pull request #839 from ahoppen/ahoppen/fix-integration-test

Move semaphore signaling to block main thread until request has received a reply instead of until it has been handled
This commit is contained in:
Alastair Houghton
2023-09-29 07:47:37 +01:00
committed by GitHub

View File

@@ -290,8 +290,8 @@ public final class JSONRPCConnection {
messageHandlingQueue.async {
await request._handle(self.receiveHandler!, id: id, connection: self) { (response, id) in
self.sendReply(response, id: id)
semaphore?.signal()
}
semaphore?.signal()
}
semaphore?.wait()