stefanwille / crystal-redis

Full featured Redis client for Crystal
MIT License
381 stars 61 forks source link

Reset strategy if leaving subscription loop #108

Closed z64 closed 3 years ago

z64 commented 4 years ago

Naive fix for #106.

No idea if this is the appropriate place for this change, but seems to address the issue per the test I added. This could be done other ways I think, but would require exposing more internal API - so I went for the least evasive solution.

Happy to iterate on this if there is a better approach.