Closed mjarmoc closed 4 years ago
This PR solves the following problem:
BUG: After reconnection (broker died) the client sends a response for RPC n + 1 times, where n is the number of reconnections.
SOLUTION: Detach listeners from response emitter on disconnect event and reattach them on connect (is dispatched on connect or reconnect).
disconnect
connect
Thx for bugfix!
This PR solves the following problem:
BUG: After reconnection (broker died) the client sends a response for RPC n + 1 times, where n is the number of reconnections.
SOLUTION: Detach listeners from response emitter on
disconnect
event and reattach them onconnect
(is dispatched on connect or reconnect).