s/sock/fd/. Fixes #1487.
This commit is contained in:
parent
d576fbb39a
commit
baae9bfea8
2 changed files with 46 additions and 46 deletions
|
|
@ -125,7 +125,7 @@ proc read*(f: AsyncFile, size: int): Future[string] =
|
|||
|
||||
var ol = PCustomOverlapped()
|
||||
GC_ref(ol)
|
||||
ol.data = TCompletionData(sock: f.fd, cb:
|
||||
ol.data = TCompletionData(fd: f.fd, cb:
|
||||
proc (fd: TAsyncFD, bytesCount: Dword, errcode: OSErrorCode) =
|
||||
if not retFuture.finished:
|
||||
if errcode == OSErrorCode(-1):
|
||||
|
|
@ -251,7 +251,7 @@ proc write*(f: AsyncFile, data: string): Future[void] =
|
|||
|
||||
var ol = PCustomOverlapped()
|
||||
GC_ref(ol)
|
||||
ol.data = TCompletionData(sock: f.fd, cb:
|
||||
ol.data = TCompletionData(fd: f.fd, cb:
|
||||
proc (fd: TAsyncFD, bytesCount: DWord, errcode: OSErrorCode) =
|
||||
if not retFuture.finished:
|
||||
if errcode == OSErrorCode(-1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue