aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-25 19:16:10 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-25 19:16:10 +0200
commit513b3959dcb60dff5b0c176fab4824c0263eeff1 (patch)
tree4a3c3bf853dffbb273cd79b3ab4520a32bad545d /src/eu/siacs
parent66bb5c9b51d8da72e0799707ba95d83da4f419b5 (diff)
moved some try catchs around
Diffstat (limited to 'src/eu/siacs')
-rw-r--r--src/eu/siacs/conversations/xml/TagWriter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eu/siacs/conversations/xml/TagWriter.java b/src/eu/siacs/conversations/xml/TagWriter.java
index 95436f05..23a260f2 100644
--- a/src/eu/siacs/conversations/xml/TagWriter.java
+++ b/src/eu/siacs/conversations/xml/TagWriter.java
@@ -78,19 +78,19 @@ public class TagWriter {
}
public TagWriter writeStanzaAsync(AbstractStanza stanza) {
- try {
if (finshed) {
return this;
} else {
if (!asyncStanzaWriter.isAlive()) {
- asyncStanzaWriter.start();
+ try {
+ asyncStanzaWriter.start();
+ } catch (IllegalThreadStateException e) {
+ //already started
+ }
}
writeQueue.add(stanza);
return this;
}
- } catch (IllegalThreadStateException e) {
- return this;
- }
}
public void finish() {