mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-17 21:12:42 +00:00
Fix AsyncSocket send
This commit is contained in:
@@ -1589,7 +1589,7 @@ proc send*(socket: AsyncFD, data: string,
|
||||
# or failed.
|
||||
|
||||
let sendFut = socket.send(addr copiedData[0], data.len, flags)
|
||||
sendFut.cb =
|
||||
sendFut.callback =
|
||||
proc () =
|
||||
GC_unref(copiedData)
|
||||
if sendFut.failed:
|
||||
|
||||
Reference in New Issue
Block a user