Skip to content

Commit

Permalink
Added 'darwin' to sleep calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Balancingrock committed Jun 8, 2017
1 parent 005e6b9 commit b6b409b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/SwifterSockets.ConnectionPool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// File: SwifterSockets.ConnectionPool.swift
// Project: SwifterSockets
//
// Version: 0.10.6
// Version: 0.10.8
//
// Author: Marinus van der Lugt
// Company: http://balancingrock.nl
Expand Down Expand Up @@ -48,6 +48,7 @@
//
// History
//
// 0.10.8 - Added 'Darwin' to sleep calls.
// 0.10.6 - Added sorting for next available connection.
// 0.10.2 - Added BRUtils for the Result type
// 0.9.15 - Added loopcount to the return of allocateOrTimeout function.
Expand Down Expand Up @@ -149,7 +150,7 @@ public final class ConnectionPool {

if loopCount >= timeout { break }

sleep(1)
_ = Darwin.sleep(1)

loopCount += 1
}
Expand Down Expand Up @@ -239,7 +240,7 @@ public final class ConnectionPool {
}
}

sleep(1)
_ = Darwin.sleep(1)
}
}
}

0 comments on commit b6b409b

Please sign in to comment.