Fixed a bug where LocalChannel.isConnected() returns a wrong value

This commit is contained in:
Trustin Lee 2009-02-09 07:52:13 +00:00
parent ce7ca53bdf
commit 3569e869a9

View File

@ -71,7 +71,8 @@ public class LocalChannel extends AbstractChannel {
}
public boolean isConnected() {
return pairedChannel != null;
return localAddress != null &&
pairedChannel != null && pairedChannel.localAddress != null;
}
public LocalAddress getLocalAddress() {