[jetrix-cvs] SF.net SVN: jetrix:[787] jetrix/trunk/src/java/net/jetrix/clients/ ConsoleClient.java
Brought to you by:
smanux
From: <sm...@us...> - 2009-02-13 13:22:36
|
Revision: 787 http://jetrix.svn.sourceforge.net/jetrix/?rev=787&view=rev Author: smanux Date: 2009-02-13 12:22:35 +0000 (Fri, 13 Feb 2009) Log Message: ----------- Proper disconnection from the console to prevent hanging at the end of the shutdown sequence on Windows Modified Paths: -------------- jetrix/trunk/src/java/net/jetrix/clients/ConsoleClient.java Modified: jetrix/trunk/src/java/net/jetrix/clients/ConsoleClient.java =================================================================== --- jetrix/trunk/src/java/net/jetrix/clients/ConsoleClient.java 2009-02-13 11:11:50 UTC (rev 786) +++ jetrix/trunk/src/java/net/jetrix/clients/ConsoleClient.java 2009-02-13 12:22:35 UTC (rev 787) @@ -87,7 +87,7 @@ if (closed) { - log.info("Input stream closed, shutting down the console..."); + log.info("Standard input closed, shutting down the console..."); } } @@ -169,6 +169,14 @@ public void disconnect() { + try + { + System.in.close(); + } + catch (IOException e) + { + log.warning("Unable to close the standard input : " + e.getMessage()); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |