Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit a923e76

Browse files
pasnoxlnjX
authored andcommitted
Fix QXmppMixManager not finishing task when nothing to export
1 parent 3b22f8c commit a923e76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/QXmppMixManager.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,10 @@ void QXmppMixManager::onRegistered(QXmppClient *client)
11261126

11271127
result->items.reserve(*counter);
11281128

1129+
if (iqItems.empty()) {
1130+
return promise.finish(*result.get());
1131+
}
1132+
11291133
for (const auto &item : std::as_const(iqItems)) {
11301134
requestParticipants(item.bareJid()).then(this, [manager, result, promise, counter, channelId = item.bareJid(), participantId = item.mixParticipantId()](auto &&participantsResult) mutable {
11311135
if (promise.task().isFinished()) {

0 commit comments

Comments
 (0)