mirror of
https://github.com/janet-lang/janet
synced 2025-07-08 21:12:54 +00:00
Don't mess with async connect on BSDs.
This commit is contained in:
parent
bf2af1051f
commit
66292beec9
@ -162,7 +162,9 @@ static void net_sched_connect(JanetStream *stream) {
|
|||||||
JanetListenerState *s = janet_listen(stream, net_machine_connect, JANET_ASYNC_LISTEN_WRITE, sizeof(NetStateConnect), NULL);
|
JanetListenerState *s = janet_listen(stream, net_machine_connect, JANET_ASYNC_LISTEN_WRITE, sizeof(NetStateConnect), NULL);
|
||||||
NetStateConnect *state = (NetStateConnect *)s;
|
NetStateConnect *state = (NetStateConnect *)s;
|
||||||
state->did_connect = 0;
|
state->did_connect = 0;
|
||||||
|
#ifdef JANET_WINDOWS
|
||||||
net_machine_connect(s, JANET_ASYNC_EVENT_USER);
|
net_machine_connect(s, JANET_ASYNC_EVENT_USER);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* State machine for accepting connections. */
|
/* State machine for accepting connections. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user