summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/util/SocketServer.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-05-21 08:32:16 +0000
committermichelou <michelou@epfl.ch>2007-05-21 08:32:16 +0000
commitef2279df3d7f3cb4b120e323bc67cac8f60f3e57 (patch)
tree9c6cdfc4d72427bafc4c4f10e2a8b7bb2e31cb21 /src/compiler/scala/tools/util/SocketServer.scala
parent77863427aeaae8c34ae95595eafa5bf0a2d8e69a (diff)
downloadscala-ef2279df3d7f3cb4b120e323bc67cac8f60f3e57.tar.gz
scala-ef2279df3d7f3cb4b120e323bc67cac8f60f3e57.tar.bz2
scala-ef2279df3d7f3cb4b120e323bc67cac8f60f3e57.zip
minor changes
Diffstat (limited to 'src/compiler/scala/tools/util/SocketServer.scala')
-rw-r--r--src/compiler/scala/tools/util/SocketServer.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/util/SocketServer.scala b/src/compiler/scala/tools/util/SocketServer.scala
index 06b732c6cb..cfa5b3170e 100644
--- a/src/compiler/scala/tools/util/SocketServer.scala
+++ b/src/compiler/scala/tools/util/SocketServer.scala
@@ -1,7 +1,7 @@
/* __ *\
** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
+** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
@@ -46,7 +46,7 @@ abstract class SocketServer {
fatal("Could not listen on any port; exiting.")
}
- def run(): unit =
+ def run() {
while (!shutDown) {
val serverSocket = try {
new ServerSocket(port)
@@ -75,6 +75,7 @@ abstract class SocketServer {
clientSocket.close()
serverSocket.close()
}
+ }
}