1
0

qml: use daemon threads everywhere the network is involved

The app hangs indefinitely if we try to quit it while one of
these threads is active, because once asyncio has shut down,
futures never return. This was already fixed for lightning
payments in c5dc133, but there are many other cases.
This commit is contained in:
ThomasV
2023-04-05 12:26:32 +02:00
parent 0c83f363eb
commit d4c386a62c
5 changed files with 7 additions and 7 deletions

View File

@@ -194,7 +194,7 @@ class QEChannelDetails(QObject, QtEventListener):
self._logger.exception("Could not close channel: " + repr(e))
self.channelCloseFailed.emit(_('Could not close channel: ') + repr(e))
threading.Thread(target=do_close).start()
threading.Thread(target=do_close, daemon=True).start()
@pyqtSlot()
def deleteChannel(self):