mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes #16154; underlying system.add for seq is the real cause; will be addressed in a follow-up PR (#16161)
This commit is contained in:
@@ -1199,9 +1199,10 @@ else:
|
||||
not p.selector.isEmpty() or p.timers.len != 0 or p.callbacks.len != 0
|
||||
|
||||
proc prependSeq(dest: var seq[Callback]; src: sink seq[Callback]) =
|
||||
let old = move dest
|
||||
var old = move dest
|
||||
dest = src
|
||||
dest.add old
|
||||
for i in 0..high(old):
|
||||
dest.add(move old[i])
|
||||
|
||||
proc processBasicCallbacks(
|
||||
fd: AsyncFD, event: Event
|
||||
|
||||
Reference in New Issue
Block a user