Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/curl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ object Curl {
}
} else {
println("stopping poll")
pollHandle.stop()
pollHandle.close()
startTimerCB(multi, 1, null)
}
0
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/scala/scala/scalanative/loop/Poll.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import internals.HandleUtils

def stop(): Unit = {
uv_poll_stop(ptr)
}

def close(): Unit = {
stop()
HandleUtils.close(ptr)
}
}
Expand Down