mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 11:07:57 +01:00
[muc] Use StanzaCollector.nextResultBlockForever() in MultiUserChat.nextMessage()
This commit is contained in:
parent
602aafe119
commit
39b211cde3
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue