projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix “isClosed” method
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
FcpConnection.java
diff --git
a/src/main/java/net/pterodactylus/fcp/FcpConnection.java
b/src/main/java/net/pterodactylus/fcp/FcpConnection.java
index
b191ad1
..
34f47fd
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/FcpConnection.java
+++ b/
src/main/java/net/pterodactylus/fcp/FcpConnection.java
@@
-156,6
+156,10
@@
public class FcpConnection implements Closeable {
fcpListenerManager.removeListener(fcpListener);
}
fcpListenerManager.removeListener(fcpListener);
}
+ public synchronized boolean isClosed() {
+ return connectionHandler == null;
+ }
+
//
// ACTIONS
//
//
// ACTIONS
//