diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2008-10-15 15:05:21 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2008-10-15 15:05:21 +0000 |
commit | ddda42af0a441b57cfbfdb7b29d87c769661aa3c (patch) | |
tree | 7389c5b807f3fbc5e94cb153e0ce018f1ca61c3d | |
parent | 8b63b6aacbb2efbabe91fe8e9bebcbbcfc242b8e (diff) | |
download | scala-ddda42af0a441b57cfbfdb7b29d87c769661aa3c.tar.gz scala-ddda42af0a441b57cfbfdb7b29d87c769661aa3c.tar.bz2 scala-ddda42af0a441b57cfbfdb7b29d87c769661aa3c.zip |
Removed unnecessary "getHostName()", see ticket...
Removed unnecessary "getHostName()", see ticket #1366
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileSocket.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala index bb01655709..c2aa60cd5c 100644 --- a/src/compiler/scala/tools/nsc/CompileSocket.scala +++ b/src/compiler/scala/tools/nsc/CompileSocket.scala @@ -205,9 +205,9 @@ class CompileSocket { } else { val port = if(create) getPort(vmArgs) else pollPort() if(port < 0) return null - val hostName = InetAddress.getLocalHost().getHostName() + val hostAdr = InetAddress.getLocalHost() try { - val result = new Socket(hostName, port) + val result = new Socket(hostAdr, port) info("[Connected to compilation daemon at port " + port + "]") result } catch { |