1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 10:49:41 +02:00

Remove null checks for writer/reader fields in XMPPTCPConnection

as those are never null since
60f324eb1b (the previous commit).
This commit is contained in:
Florian Schmaus 2019-02-09 18:20:55 +01:00
parent 60f324eb1b
commit 78dcaec75b
2 changed files with 21 additions and 15 deletions

View file

@ -234,6 +234,16 @@ public class SynchronizationPoint<E extends Exception> {
}
}
public boolean isNotInInitialState() {
connectionLock.lock();
try {
return state != State.Initial;
}
finally {
connectionLock.unlock();
}
}
/**
* Check if this synchronization point has its request already sent.
*