mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-26 06:07:59 +01:00
Remove writerException in XMPPTCPConnection
This delay mechanism is no longer necessary.
This commit is contained in:
parent
a05b464032
commit
884ee327e1
1 changed files with 1 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue