-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Issue #370 Session/socket never closed, warnings shown The msal application does not close its resources like eg: self.http_client. As a result a 'ResourceWarning unclosed <ssl.SSLSocket' is shown when the app goes out of scope (when warnings are enabled) This fix adds and explicit close method so developers can cleanly close the app if they so desire. In __init__ we trap and close the exception explicitely as users cannot call close when __init__ fails. Finally we don't close the http_client if it's externally managed.
- Loading branch information
Hans Weltar
authored and
Karsten Verelst
committed
Jun 21, 2021
1 parent
cb88462
commit 6ec44b1
Showing
1 changed file
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters