AsterNET icon indicating copy to clipboard operation
AsterNET copied to clipboard

ManagerConnection instance reuse causes Timeout exception

Open Deantwo opened this issue 6 years ago • 1 comments

I found the note in my code about the issue with reusing the same ManagerConnection instance over and over again.

_ami = new ManagerConnection(); // Timeout exception is thrown when attempting to reconnect after having been connected before. Creating a new instance each time fixes this.

We should probably fix this.

Originally posted by @Deantwo in https://github.com/AsterNET/AsterNET/issues/107#issuecomment-461352516

Deantwo avatar Feb 07 '19 09:02 Deantwo

Current workaround is to just null it and reinitialize it if you need to log out and back in.

Deantwo avatar Feb 07 '19 09:02 Deantwo