mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-18 02:52:42 +03:00
plugins/eddn: Call requests.Session.close() in EDDN.close()
Avoids a `-W default` warning on shutdown.
This commit is contained in:
1 parent
6aa4ccaf90
commit
933ec723bd
1 file changed
+4
-1
+4
-1
@@ -113,7 +113,7 @@ class EDDN:
|
||||
self.replayfile.flush()
|
||||
|
||||
def close(self):
|
||||
"""Close the replay file."""
|
||||
"""Close down the EDDN class instance."""
|
||||
logger.debug('Closing replayfile...')
|
||||
if self.replayfile:
|
||||
self.replayfile.close()
|
||||
@@ -121,6 +121,9 @@ class EDDN:
|
||||
self.replayfile = None
|
||||
logger.debug('Done.')
|
||||
|
||||
logger.debug('Closing EDDN requests.Session.')
|
||||
self.session.close()
|
||||
|
||||
def send(self, cmdr: str, msg: Mapping[str, Any]) -> None:
|
||||
"""
|
||||
Send sends an update to EDDN
|
||||
|
||||
Reference in new issue
Block a user