mirror of
https://github.com/janet-lang/janet
synced 2025-11-18 08:15:13 +00:00
Add timeouts to net functions.
Further debugging of the general timeout system, as well as having a single fiber wait on multiple state machines (select).
This commit is contained in:
@@ -1286,6 +1286,10 @@ static JanetSignal janet_continue_no_check(JanetFiber *fiber, Janet in, Janet *o
|
||||
|
||||
JanetFiberStatus old_status = janet_fiber_status(fiber);
|
||||
|
||||
#ifdef JANET_EV
|
||||
janet_cancel(fiber);
|
||||
#endif
|
||||
|
||||
/* Continue child fiber if it exists */
|
||||
if (fiber->child) {
|
||||
if (janet_vm_root_fiber == NULL) janet_vm_root_fiber = fiber;
|
||||
|
||||
Reference in New Issue
Block a user