mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-06 18:24:36 +01:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user