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

This commit is contained in:
Florian Schmaus 2021-05-12 10:18:17 +02:00
parent 602aafe119
commit 39b211cde3
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}
/**

View File

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