mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Fix adding handler to loop with fiber
This commit is contained in:
parent
69b68c0091
commit
bf6eae711a
@ -2739,7 +2739,7 @@
|
||||
[host port &opt handler type]
|
||||
(def s (net/listen host port type))
|
||||
(if handler
|
||||
(ev/go (fn [] (net/accept-loop s handler))))
|
||||
(ev/go (coro (net/accept-loop s handler))))
|
||||
s))
|
||||
|
||||
(undef guarddef)
|
||||
|
Loading…
Reference in New Issue
Block a user