If you have only one subscription and then unsubscribe from it, Amp\Redis\RedisSubscriber will become to invalid state.
Amp\Redis\RedisSubscription::unsubscribe internally calls Amp\Redis\RedisSubscriber::unloadEmitter which checks isIdle and disconnects but runnging flag stays true. So, if you want to get another subscription after it, Amp\Redis\RedisSubscriber::run won't be called (and it will not perform connect therefore) and 'Redis connection already closed' exception will be thrown.
If you have only one subscription and then unsubscribe from it,
Amp\Redis\RedisSubscriberwill become to invalid state.Amp\Redis\RedisSubscription::unsubscribeinternally callsAmp\Redis\RedisSubscriber::unloadEmitterwhich checks isIdle and disconnects butrunngingflag stays true. So, if you want to get another subscription after it,Amp\Redis\RedisSubscriber::runwon't be called (and it will not perform connect therefore) and 'Redis connection already closed' exception will be thrown.