Skip to content

Commit 7cd3390

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 7a04d45 + c5f98ee commit 7cd3390

11 files changed

Lines changed: 193 additions & 121 deletions

File tree

src/channel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ channel_open(char *hostname, int port_in, int waittime, void (*close_cb)(void))
465465
FD_ZERO(&wfds);
466466
FD_SET(sd, &rfds);
467467
FD_SET(sd, &wfds);
468-
tv.tv_sec = waittime;
469-
tv.tv_usec = 0;
468+
tv.tv_sec = waittime / 1000;
469+
tv.tv_usec = (waittime % 1000) * 1000;
470470
ret = select((int)sd+1, &rfds, &wfds, NULL, &tv);
471471
if (ret < 0)
472472
{

0 commit comments

Comments
 (0)