Fixed a bug where LocalChannel.isConnected() returns a wrong value
This commit is contained in:
parent
ce7ca53bdf
commit
3569e869a9
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user