mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-17 14:25:12 -05:00
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()) {
|
||||
asyncStanzaWriter.start();
|
||||
try {
|
||||
asyncStanzaWriter.start();
|
||||
} catch (IllegalThreadStateException e) {
|
||||
//already started
|
||||
}
|
||||
}
|
||||
writeQueue.add(stanza);
|
||||
return this;
|
||||
}
|
||||
} catch (IllegalThreadStateException e) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public void finish() {
|
||||
|
Loading…
Reference in New Issue
Block a user