Currently, subscriptions are iterated over in terms of keys, which works until a subscription unsubscribes another subscription, at which point the key no longer points to anything. To fix this, a values array should be used instead, and that way there will be no spurious lookups.
Currently, subscriptions are iterated over in terms of keys, which works until a subscription unsubscribes another subscription, at which point the key no longer points to anything. To fix this, a values array should be used instead, and that way there will be no spurious lookups.