Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue: reconnection only happends for 1 time after connection drops
Since the PR #125 fixed duplicate connections after reconnection by using a `connectionInProgress` lock to avoid function `connect()` be called duplicately. But it forgot to release the `connectionInProgress` lock when request error happends, in that case, our client can only retry for 1 time and never get the lock again. So it's needed to release the `connectionInProgress` lock when error happends. Signed-off-by: icy_fish <[email protected]>
- Loading branch information