From ddda42af0a441b57cfbfdb7b29d87c769661aa3c Mon Sep 17 00:00:00 2001 From: Antonio Cunei Date: Wed, 15 Oct 2008 15:05:21 +0000 Subject: Removed unnecessary "getHostName()", see ticket... Removed unnecessary "getHostName()", see ticket #1366 --- src/compiler/scala/tools/nsc/CompileSocket.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler') 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 { -- cgit v1.2.3