mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[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:
parent
34b0fdff1d
commit
67d9c2efb4
1 changed files with 2 additions and 2 deletions
|
@ -211,10 +211,10 @@ class Core(component.Component):
|
||||||
self._save_session_state()
|
self._save_session_state()
|
||||||
|
|
||||||
# We stored a copy of the old interface value
|
# 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
|
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
|
self.config['outgoing_interface'] = self._old_outgoing_interface
|
||||||
|
|
||||||
# Make sure the config file has been saved
|
# Make sure the config file has been saved
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue