I found a small bug:
Calling Bot::leave() sent a leave request to SC2, but did not terminate the main loop. The next time some communication with SC2 happens, the bot waits for response and hangs.
I am not sure how good the bugfix is, but this was my best idea without changing the public interface.
I moved the send_request code intensionally to ensure that e.g. mutliple calls to leave do not result in the same problem.
I found a small bug: Calling
Bot::leave()
sent a leave request to SC2, but did not terminate the main loop. The next time some communication with SC2 happens, the bot waits for response and hangs.I am not sure how good the bugfix is, but this was my best idea without changing the public interface.
I moved the
send_request
code intensionally to ensure that e.g. mutliple calls toleave
do not result in the same problem.