Closed unizippro closed 2 years ago
Its determined to be a symptom of the #30.
If it is to arrise again one could block waiting for the socket to open, but it requires checking the WaitingForConnected
state can not be reached without having sent the open peer command.
Closing a peer after creation before connection is established, is not registered correctly. Since having two connections to the same socket address is not allowed the module throws an error if a reconnection is tried.
This should not be possible, as connect should be blocking, but #30 makes this possible. So it might be classified as a symptom of another bug.
Solution
Block untill state changes? This could cause other issues, as it will cause a stall if the socket ends in this state by mistake.