lib/async/redis/context/subscribe.rb in async-redis-0.2.0 vs lib/async/redis/context/subscribe.rb in async-redis-0.3.0

- old
+ new

@@ -1,7 +1,7 @@ # Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com> -# and Huba Nagy +# Copyright, 2018, by Huba Nagy. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -64,10 +64,10 @@ end return response else @channels.subtract(channels) - return send_command 'UNSUBSCRIBE', *channels + return call 'UNSUBSCRIBE', *channels end end end end end