Hello, I tried to review the code.
For example if an error is received regarding the connection, a re-connection request is sent periodically. And if any of them are connected, sending re-connection request is stopped.
However, the point I noticed is that if more than one of the sent requests is connected, the connection becomes multiple.
My question is, in the end, shouldn't only one connection be kept (other connections should be closed) as in initial state?