diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-25 19:16:10 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-25 19:16:10 +0200 |
commit | 513b3959dcb60dff5b0c176fab4824c0263eeff1 (patch) | |
tree | 4a3c3bf853dffbb273cd79b3ab4520a32bad545d /src/eu/siacs/conversations | |
parent | 66bb5c9b51d8da72e0799707ba95d83da4f419b5 (diff) |
moved some try catchs around
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/xml/TagWriter.java | 10 |
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() { |