From acf026175bfbf012e8ddd035e2f513aa5c714db6 Mon Sep 17 00:00:00 2001 From: Bill Abt Date: Fri, 9 Dec 2016 15:16:19 -0500 Subject: [PATCH] Added comments related to PR42 to additional lines of code where the same thing will occur. --- Sources/Socket.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Sources/Socket.swift b/Sources/Socket.swift index 2f1a9d7..f3cce34 100644 --- a/Sources/Socket.swift +++ b/Sources/Socket.swift @@ -1312,7 +1312,7 @@ public class Socket: SocketReader, SocketWriter { continue } - //Note: if you're running tests inside Xcode and the tests stop on this line + // Note: if you're running tests inside Xcode and the tests stop on this line // and the tests fail, but they work if you run `swift test` on the // command line, Hit `Deactivate Breakpoints` in Xcode and try again throw Error(code: Socket.SOCKET_ERR_ACCEPT_FAILED, reason: self.lastError()) @@ -1339,6 +1339,9 @@ public class Socket: SocketReader, SocketWriter { continue } + // Note: if you're running tests inside Xcode and the tests stop on this line + // and the tests fail, but they work if you run `swift test` on the + // command line, Hit `Deactivate Breakpoints` in Xcode and try again throw Error(code: Socket.SOCKET_ERR_ACCEPT_FAILED, reason: self.lastError()) } socketfd2 = fd @@ -1449,6 +1452,9 @@ public class Socket: SocketReader, SocketWriter { continue } + // Note: if you're running tests inside Xcode and the tests stop on this line + // and the tests fail, but they work if you run `swift test` on the + // command line, Hit `Deactivate Breakpoints` in Xcode and try again throw Error(code: Socket.SOCKET_ERR_ACCEPT_FAILED, reason: self.lastError()) } socketfd2 = fd @@ -1473,6 +1479,9 @@ public class Socket: SocketReader, SocketWriter { continue } + // Note: if you're running tests inside Xcode and the tests stop on this line + // and the tests fail, but they work if you run `swift test` on the + // command line, Hit `Deactivate Breakpoints` in Xcode and try again throw Error(code: Socket.SOCKET_ERR_ACCEPT_FAILED, reason: self.lastError()) } socketfd2 = fd