preparescript: Fix UI_HTML_PORT bug.

Warn on os.chmod failure, workaround for mounted ntfs volumes.

client: Set delay_event in stopRunning()
Raise version
This commit is contained in:
tecnovert
2021-02-16 23:41:07 +02:00
parent 3e858888ac
commit bbd3d701c0
5 changed files with 43 additions and 21 deletions

View File

@@ -1,3 +1,3 @@
name = "basicswap"
__version__ = "0.0.17"
__version__ = "0.0.18"

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2019 tecnovert
# Copyright (c) 2019-2021 tecnovert
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
@@ -38,14 +38,16 @@ class BaseApp:
self.coin_interfaces = {}
self.mxDB = threading.RLock()
self.debug = self.settings.get('debug', False)
self.delay_event = threading.Event()
self._network = None
self.prepareLogging()
self.log.info('Network: {}'.format(self.chain))
def stopRunning(self, with_code=0):
self.fail_code = with_code
self.is_running = False
with self.mxDB:
self.is_running = False
self.delay_event.set()
def prepareLogging(self):
self.log = logging.getLogger(self.log_name)

View File

@@ -470,7 +470,6 @@ class BasicSwap(BaseApp):
self.SMSG_SECONDS_IN_HOUR = 60 * 60 # Note: Set smsgsregtestadjust=0 for regtest
self.delay_event = threading.Event()
self.threads = []
# Encode key to match network