diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-05-23 13:14:28 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-05-23 13:14:28 +0100 |
commit | 6a38d36239b9c9acd205b0ad3c7dd3cdbed91364 (patch) | |
tree | 939e364766d7653da5765bbc3826423f7e7ee7d7 /tests | |
parent | b54f66eeff4c9977a7e855f9f310216f59729860 (diff) | |
download | Nim-6a38d36239b9c9acd205b0ad3c7dd3cdbed91364.tar.gz |
Rename asyncdispatch.close to asyncdispatch.closeSocket.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/async/tasyncawait.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/async/tasyncawait.nim b/tests/async/tasyncawait.nim index ffceeaee6..da4952677 100644 --- a/tests/async/tasyncawait.nim +++ b/tests/async/tasyncawait.nim @@ -23,19 +23,19 @@ proc launchSwarm(port: TPort) {.async.} = await connect(sock, "localhost", port) when true: await sendMessages(sock) - close(sock) + closeSocket(sock) else: # Issue #932: https://github.com/Araq/Nimrod/issues/932 var msgFut = sendMessages(sock) msgFut.callback = proc () = - close(sock) + closeSocket(sock) proc readMessages(client: TAsyncFD) {.async.} = while true: var line = await recvLine(client) if line == "": - close(client) + closeSocket(client) clientCount.inc break else: |