aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/xml
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-01-21 15:09:35 +0100
committerChristian Schneppe <christian@pix-art.de>2018-01-21 15:09:35 +0100
commitce02d3e2a9d6a5180ba458c97a4c25e09aba230c (patch)
treefb032be062dee304543640dad109bce85ee21906 /src/main/java/de/pixart/messenger/xml
parent2f7a141ee68789175b59a39f4b62dbc8c691a1e3 (diff)
fixed interupt handling
Diffstat (limited to 'src/main/java/de/pixart/messenger/xml')
-rw-r--r--src/main/java/de/pixart/messenger/xml/TagWriter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/xml/TagWriter.java b/src/main/java/de/pixart/messenger/xml/TagWriter.java
index 3f4d011a2..c6b84170d 100644
--- a/src/main/java/de/pixart/messenger/xml/TagWriter.java
+++ b/src/main/java/de/pixart/messenger/xml/TagWriter.java
@@ -26,7 +26,9 @@ public class TagWriter {
try {
AbstractStanza output = writeQueue.take();
outputStream.write(output.toString());
- outputStream.flush();
+ if (writeQueue.size() == 0) {
+ outputStream.flush();
+ }
} catch (Exception e) {
return;
}