2:
 - change type of active subscriptions bag to set
 - rename function to reflect type change
 - compilation fix
 - check if subscription active before adding it to wait queue