Skip to content

Commit

Permalink
Fix QXmppMixManager not finishing task when nothing to export
Browse files Browse the repository at this point in the history
  • Loading branch information
pasnox authored and lnjX committed Jan 31, 2025
1 parent 3b22f8c commit d2a3dc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/QXmppMixManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,10 @@ void QXmppMixManager::onRegistered(QXmppClient *client)

result->items.reserve(*counter);

if (iqItems.empty()) {
return promise.finish(*result.get());
}

for (const auto &item : std::as_const(iqItems)) {
requestParticipants(item.bareJid()).then(this, [manager, result, promise, counter, channelId = item.bareJid(), participantId = item.mixParticipantId()](auto &&participantsResult) mutable {
if (promise.task().isFinished()) {
Expand Down

0 comments on commit d2a3dc1

Please sign in to comment.