Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/server: defer ctxCleanupWG.Done()
ctxCleanupWG is being waited by the main function (or tests, see previous commit) for the server to complete cleanup. Commit 19b2000 introduced a return statement that did not call .Done() on the above WaitGgroup which results in the agent hanging if the return statement is called. Use a defer statement for .Done() which solves the above problem and, also, makes it harder to introduce similar bugs. fixes: 19b2000 Signed-off-by: Kornilios Kourtis <[email protected]>
- Loading branch information