mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix resetSubscriptions
This commit is contained in:
parent
42080189ed
commit
571863b15f
@ -194,6 +194,7 @@ private:
|
||||
|
||||
/// priority muxer instance
|
||||
PriorityMuxer* _prioMuxer;
|
||||
|
||||
/// contains active subscriptions
|
||||
QSet<Subscription::Type> _subscribedCommands;
|
||||
|
||||
|
@ -229,7 +229,8 @@ QStringList JsonCallbacks::unsubscribe(const QJsonArray& subscriptions)
|
||||
|
||||
void JsonCallbacks::resetSubscriptions()
|
||||
{
|
||||
for (QSet<Subscription::Type>::const_iterator it = _subscribedCommands.constBegin(); it != _subscribedCommands.constEnd(); ++it)
|
||||
const QSet<Subscription::Type> currentSubscriptions = _subscribedCommands;
|
||||
for (QSet<Subscription::Type>::const_iterator it = currentSubscriptions.constBegin(); it != currentSubscriptions.constEnd(); ++it)
|
||||
{
|
||||
unsubscribe(*it);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user