1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-13 15:14:54 +02:00

Remove writerException in XMPPTCPConnection

This delay mechanism is no longer necessary.
This commit is contained in:
Florian Schmaus 2020-06-17 20:31:28 +02:00
parent a05b464032
commit 884ee327e1

View file

@ -1272,7 +1272,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
}
private void writePackets() {
Exception writerException = null;
try {
// Write out packets from the queue.
while (!done()) {
@ -1382,15 +1381,11 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
// The exception can be ignored if the the connection is 'done'
// or if the it was caused because the socket got closed
if (!(done() || queue.isShutdown())) {
writerException = e;
notifyConnectionError(e);
} else {
LOGGER.log(Level.FINE, "Ignoring Exception in writePackets()", e);
}
}
// Delay notifyConnectionError after shutdownDone has been reported in the finally block.
if (writerException != null) {
notifyConnectionError(writerException);
}
}
private void drainWriterQueueToUnacknowledgedStanzas() {