From 1aaf2c931c4964105f1ee82f5aa396dd7d6be9c9 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Sat, 26 Aug 2017 17:44:17 +0200 Subject: [PATCH] GH-512 Invoke agent.quit in neoVimStopped again - We only close mach channels in quit() --- SwiftNeoVim/NeoVimView+UiBridge.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SwiftNeoVim/NeoVimView+UiBridge.swift b/SwiftNeoVim/NeoVimView+UiBridge.swift index 55e36513..6888c0d3 100644 --- a/SwiftNeoVim/NeoVimView+UiBridge.swift +++ b/SwiftNeoVim/NeoVimView+UiBridge.swift @@ -186,6 +186,8 @@ extension NeoVimView { self.quitNeoVimCondition.signal() self.quitNeoVimCondition.unlock() + self.agent.quit() + gui.async { self.delegate?.neoVimStopped() } @@ -206,10 +208,6 @@ extension NeoVimView { if event == .BUFREADPOST || event == .BUFWRITEPOST { self.currentBufferChanged(bufferHandle) } - - if event == .VIMLEAVE { - self.agent.quit() - } } }