mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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()
This commit is contained in:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user