mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
Fix mod_console too (missing FD_ZERO before FD_SET)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13126 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0193119a5e
commit
61960f92b6
@ -155,6 +155,7 @@ static int can_write(FILE * handle, int ms)
|
||||
|
||||
fd = fileno(handle);
|
||||
memset(&to, 0, sizeof(to));
|
||||
FD_ZERO(&can_write);
|
||||
FD_SET(fd, &can_write);
|
||||
to.tv_sec = sec;
|
||||
to.tv_usec = usec;
|
||||
|
Loading…
x
Reference in New Issue
Block a user