summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-05-23 13:14:28 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-05-23 13:14:28 +0100
commit6a38d36239b9c9acd205b0ad3c7dd3cdbed91364 (patch)
tree939e364766d7653da5765bbc3826423f7e7ee7d7 /tests
parentb54f66eeff4c9977a7e855f9f310216f59729860 (diff)
downloadNim-6a38d36239b9c9acd205b0ad3c7dd3cdbed91364.tar.gz
Rename asyncdispatch.close to asyncdispatch.closeSocket.
Diffstat (limited to 'tests')
-rw-r--r--tests/async/tasyncawait.nim6
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: