moved some try catchs around
This commit is contained in:
parent
66bb5c9b51
commit
513b3959dc
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue