1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

GH-302, GH-421 Call agent.quit() in main thread

- this avoids the strange delay which occurs sometimes when we call it in the mach port server thread
This commit is contained in:
Tae Won Ha 2017-06-13 22:55:43 +02:00
parent 418d1fe1c2
commit f524a3ff0c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ extension NeoVimView {
}
public func stop() {
self.agent.quit()
self.bridgeLogger.hr()
self.quitNeoVimCondition.lock()
self.isNeoVimQuitSuccessful = true
@ -189,7 +189,7 @@ extension NeoVimView {
self.quitNeoVimCondition.unlock()
gui.async {
self.bridgeLogger.mark()
self.agent.quit()
self.delegate?.neoVimStopped()
}
}

View File

@ -156,7 +156,7 @@ public class NeoVimView: NSView,
let logger = FileLogger(as: NeoVimView.self, with: URL(fileURLWithPath: "/tmp/nvv.log"))
let bridgeLogger = FileLogger(as: NeoVimView.self,
with: URL(fileURLWithPath: "/tmp/nvv-bridge.log"),
shouldLogDebug: false)
shouldLogDebug: nil)
let agent: NeoVimAgent
let grid = Grid()