diff src/os_mswin.c @ 11181:13544aa85dc0 v8.0.0477

patch 8.0.0477: the client-server test may hang when failing commit https://github.com/vim/vim/commit/42205551b140bee8b419b24abe210f56bb80b35e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 18 19:42:22 2017 +0100 patch 8.0.0477: the client-server test may hang when failing Problem: The client-server test may hang when failing. Solution: Set a timer. Add assert_report()
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Mar 2017 19:45:05 +0100
parents 76fb679a310e
children 515db00c4676
line wrap: on
line diff
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -2570,6 +2570,9 @@ serverGetReply(HWND server, int *expr_re
 	/* 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. */