Skip to content

Commit 7ad6674

Browse files
committed
close the context when token manager is stopped
1 parent 07ab789 commit 7ad6674

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manager/token_manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ func (e *entraidTokenManager) Stop() error {
337337
return ErrTokenManagerAlreadyStopped
338338
}
339339

340+
e.ctxCancel()
340341
e.listener = nil
341342
close(e.closedChan)
342343

0 commit comments

Comments
 (0)