plugins/eddn: Call requests.Session.close() in EDDN.close()

Avoids a `-W default` warning on shutdown.
This commit is contained in:
Athanasius committed 2021-04-01 14:45:50 +01:00
1 parent 6aa4ccaf90
commit 933ec723bd
1 file changed
+4 -1
+4 -1
View File
@@ -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