Skip to content

Commit

Permalink
keep server up
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Jan 27, 2016
1 parent 33278ed commit 87f37c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/SocketServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ public class SocketServer {
*/
func loop() {
#if os(Linux)
print("Press return to stop it.")
while readLine() == nil {
while true {
sleep(1)
}
stop()
#else
NSRunLoop.mainRunLoop().run()
#endif
Expand Down

0 comments on commit 87f37c2

Please sign in to comment.