agent: Fix leaks if a component is removed during a recv() call
If the error handling block in the middle of the recv() loop is hit, various things were previously leaked (context, cancellable_source) and the return values were potentially incorrect. Fix the break out of the error handling block to clean up correctly.
Showing
Please register or sign in to comment