[Core] Fix saving listen_interface as None

A mistake in refactoring meant that listen_interface was reset to None
on shutdown.
This commit is contained in:
Calum Lind 2018-09-30 14:35:49 +01:00
parent 34b0fdff1d
commit 67d9c2efb4
1 changed files with 2 additions and 2 deletions

View File

@ -211,10 +211,10 @@ class Core(component.Component):
self._save_session_state()
# We stored a copy of the old interface value
if self._old_listen_interface is None:
if self._old_listen_interface is not None:
self.config['listen_interface'] = self._old_listen_interface
if self._old_outgoing_interface is None:
if self._old_outgoing_interface is not None:
self.config['outgoing_interface'] = self._old_outgoing_interface
# Make sure the config file has been saved