Fix AsyncSocket send

This commit is contained in:
Dmitry Polienko
2016-09-12 22:42:12 -07:00
parent d165364aac
commit d810b4515e

View File

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