diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-05 22:36:41 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-05 22:36:41 +0100 |
commit | 4d919d748e4e435edb135aa5ccf6ee7de9212023 (patch) | |
tree | 6930f368370491e5774310f3ce80ab1772525049 /src/netbeans.c | |
parent | a07fec9c85d062acd9dd433a2e681770f459ba47 (diff) | |
download | vim-git-4d919d748e4e435edb135aa5ccf6ee7de9212023.tar.gz |
patch 7.4.1263v7.4.1263
Problem: ch_open() hangs when the server isn't running.
Solution: Add a timeout. Use a dict to pass arguments. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/netbeans.c')
-rw-r--r-- | src/netbeans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c index 6f3c4e1a2..c25b7c662 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -213,7 +213,7 @@ netbeans_connect(char *params, int doabort) if (hostname != NULL && address != NULL && password != NULL) { port = atoi(address); - nb_channel_idx = channel_open(hostname, port, nb_channel_closed); + nb_channel_idx = channel_open(hostname, port, 0, nb_channel_closed); if (nb_channel_idx >= 0) { /* success */ |