moved some try catchs around

This commit is contained in:
iNPUTmice 2014-06-25 19:16:10 +02:00
parent 66bb5c9b51
commit 513b3959dc

View file

@ -78,19 +78,19 @@ public class TagWriter {
}
public TagWriter writeStanzaAsync(AbstractStanza stanza) {
try {
if (finshed) {
return this;
} else {
if (!asyncStanzaWriter.isAlive()) {
try {
asyncStanzaWriter.start();
} catch (IllegalThreadStateException e) {
//already started
}
}
writeQueue.add(stanza);
return this;
}
} catch (IllegalThreadStateException e) {
return this;
}
}
public void finish() {