mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
plugins/eddn: Call requests.Session.close() in EDDN.close()
Avoids a `-W default` warning on shutdown.
This commit is contained in:
parent
6aa4ccaf90
commit
933ec723bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user