summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-18 19:42:22 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-18 19:42:22 +0100
commit42205551b140bee8b419b24abe210f56bb80b35e (patch)
treeeb4b9fe95bd66ccb9c65e01a3bbc70a3cc026eed /src/os_mswin.c
parent7a43cb9cb5909634469b0a3e865747f10ea38e9b (diff)
downloadvim-git-42205551b140bee8b419b24abe210f56bb80b35e.tar.gz
patch 8.0.0477: the client-server test may hang when failingv8.0.0477
Problem: The client-server test may hang when failing. Solution: Set a timer. Add assert_report()
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index cfa208493..45b14783a 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -2570,6 +2570,9 @@ serverGetReply(HWND server, int *expr_res, int remove, int wait)
/* Loop until we receive a reply */
while (reply_received == 0)
{
+#ifdef FEAT_TIMERS
+ check_due_timer();
+#endif
/* Wait for a SendMessage() call to us. This could be the reply
* we are waiting for. Use a timeout of a second, to catch the
* situation that the server died unexpectedly. */