From 359ac443202b4891b79185daddc017cbf6f64137 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 10 May 2008 15:25:44 +0200 Subject: [PATCH] Avoid "dropping DO message ..." warning when quitting The warning was a result of sending a DO message from Vim and then immediately exiting the process. It is avoided by not sending any DO messages while Vim is exiting. --- src/MacVim/MMBackend.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/MacVim/MMBackend.m b/src/MacVim/MMBackend.m index 55966785..0eed0ac6 100644 --- a/src/MacVim/MMBackend.m +++ b/src/MacVim/MMBackend.m @@ -439,9 +439,10 @@ static NSString *MMSymlinkWarningString = // NOTE! This method gets called a lot; if we were to flush every time it // got called MacVim would feel unresponsive. So there is a time out which // ensures that the queue isn't flushed too often. - if (!force && lastFlushDate && -[lastFlushDate timeIntervalSinceNow] - < MMFlushTimeoutInterval - && [drawData length] < MMFlushQueueLenHint) + if (exiting || + (!force && lastFlushDate && + -[lastFlushDate timeIntervalSinceNow] < MMFlushTimeoutInterval && + [drawData length] < MMFlushQueueLenHint)) return; if ([drawData length] > 0) { -- 2.11.4.GIT