AsterNET
AsterNET copied to clipboard
ManagerConnection instance reuse causes Timeout exception
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
Current workaround is to just null it and reinitialize it if you need to log out and back in.