summaryrefslogtreecommitdiff
path: root/src/if_xcmdsrv.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-10-13 20:21:49 +0200
committerBram Moolenaar <Bram@vim.org>2015-10-13 20:21:49 +0200
commit4e86150ec5b5158da92b28938ea55819dc890a14 (patch)
treeb83b68ce4d21ccb04bec05bdddbd97c78bc679fc /src/if_xcmdsrv.c
parentb4f6a46b01ed00b642a2271e9d1559e51ab0f2c4 (diff)
downloadvim-git-4e86150ec5b5158da92b28938ea55819dc890a14.tar.gz
patch 7.4.897v7.4.897
Problem: Freeze and crash when there is a sleep in a remote command. (Karl Yngve LervÄg) Solution: Remove a message from the queue before dealing with it. (James Kolb)
Diffstat (limited to 'src/if_xcmdsrv.c')
-rw-r--r--src/if_xcmdsrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_xcmdsrv.c b/src/if_xcmdsrv.c
index cf6d9a77a..b1fbdaa35 100644
--- a/src/if_xcmdsrv.c
+++ b/src/if_xcmdsrv.c
@@ -1235,9 +1235,9 @@ server_parse_messages()
while (head.next != NULL && head.next != &head)
{
node = head.next;
- server_parse_message(X_DISPLAY, node->propInfo, node->len);
head.next = node->next;
node->next->prev = node->prev;
+ server_parse_message(X_DISPLAY, node->propInfo, node->len);
vim_free(node);
}
}