1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 03:52:06 +01:00

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