mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +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.
|
* @throws InterruptedException if the calling thread was interrupted.
|
||||||
*/
|
*/
|
||||||
public Message nextMessage() throws InterruptedException {
|
public Message nextMessage() throws InterruptedException {
|
||||||
return messageCollector.nextResult();
|
return messageCollector.nextResultBlockForever();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2101,7 +2101,7 @@ public class MultiUserChat {
|
||||||
if (messageCollector == null) {
|
if (messageCollector == null) {
|
||||||
throw new MucNotJoinedException(this);
|
throw new MucNotJoinedException(this);
|
||||||
}
|
}
|
||||||
return messageCollector.nextResult();
|
return messageCollector.nextResultBlockForever();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue