[muc] Use StanzaCollector.nextResultBlockForever() in MultiUserChat.nextMessage()

master
Florian Schmaus 2 years ago
parent 602aafe119
commit 39b211cde3

@ -225,7 +225,7 @@ public class MultiUserChatLight {
* @throws InterruptedException if the calling thread was interrupted.
*/
public Message nextMessage() throws InterruptedException {
return messageCollector.nextResult();
return messageCollector.nextResultBlockForever();
}
/**

@ -2101,7 +2101,7 @@ public class MultiUserChat {
if (messageCollector == null) {
throw new MucNotJoinedException(this);
}
return messageCollector.nextResult();
return messageCollector.nextResultBlockForever();
}
/**

Loading…
Cancel
Save