Skip to content

Commit

Permalink
fixes #16154; underlying system.add for seq is the real cause; will b…
Browse files Browse the repository at this point in the history
…e addressed in a follow-up PR (#16161)

(cherry picked from commit c9a10bb)
  • Loading branch information
Araq authored and narimiran committed Nov 27, 2020
1 parent 2043698 commit 74c687e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pure/asyncdispatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74c687e

Please sign in to comment.