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:
Andreas Rumpf 2020-11-27 15:26:57 +01:00 • committed by GitHub
commit c9a10bb9e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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