mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
report UnresolvedAddressException, which I've seen
This commit is contained in:
parent
257addec99
commit
0be2096f9c
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,7 @@ import java.nio.channels.Selector;
|
|||
import java.nio.channels.SocketChannel;
|
||||
import java.nio.channels.SelectionKey;
|
||||
import java.nio.channels.ClosedChannelException;
|
||||
import java.nio.channels.UnresolvedAddressException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.util.Vector;
|
||||
|
@ -93,8 +94,11 @@ public class CommsTransport extends Thread implements TransportProcs {
|
|||
m_socketChannel.close();
|
||||
} catch ( java.io.IOException ioe ) {
|
||||
Utils.logf( ioe.toString() );
|
||||
} catch ( UnresolvedAddressException uae ) {
|
||||
Utils.logf( "bad address: name: %s; port: %s; exception: %s",
|
||||
m_addr.ip_relay_hostName, m_addr.ip_relay_port,
|
||||
uae.toString() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void loop()
|
||||
|
|
Loading…
Add table
Reference in a new issue