summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompileSocket.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2008-10-15 15:05:21 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2008-10-15 15:05:21 +0000
commitddda42af0a441b57cfbfdb7b29d87c769661aa3c (patch)
tree7389c5b807f3fbc5e94cb153e0ce018f1ca61c3d /src/compiler/scala/tools/nsc/CompileSocket.scala
parent8b63b6aacbb2efbabe91fe8e9bebcbbcfc242b8e (diff)
downloadscala-ddda42af0a441b57cfbfdb7b29d87c769661aa3c.tar.gz
scala-ddda42af0a441b57cfbfdb7b29d87c769661aa3c.tar.bz2
scala-ddda42af0a441b57cfbfdb7b29d87c769661aa3c.zip
Removed unnecessary "getHostName()", see ticket...
Removed unnecessary "getHostName()", see ticket #1366
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileSocket.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompileSocket.scala4
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 {