This PR fixes an issue where you could have exceptions occuring in the two independently running tasks without them affecting the connection in any way. The processing would simply just stop without anyone noticing.
Changes:
Combine the two running tasks related to queueing responses and processing them to one internal task. If one of them fails or finishes both of them finishes. In this way we don't allow un-freed resources.
WaitTillDisconnected is now called HandleCalls. It returns the task which represents the two internal tasks. If any of those tasks throw an exception this call will throw that exception. Multiple calls to this function will do the exact same thing as the first time it is called
This PR fixes an issue where you could have exceptions occuring in the two independently running tasks without them affecting the connection in any way. The processing would simply just stop without anyone noticing. Changes:
┆Issue is synchronized with this Asana task