Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Qt shutdown gracefully on reactor stop. #1132

Merged
merged 1 commit into from
Dec 28, 2021
Merged

Conversation

AdamISZ
Copy link
Member

@AdamISZ AdamISZ commented Dec 27, 2021

Fixes #1024.
Prior to this commit, if the RPC connection were lost
while JoinmarketQt was running, the reactor would be
stopped, but the qt5reactor shutdown does not stop
the Qt Application. This commit fixes that by injecting
a custom reactor stop function wrapper into jmbase,
which triggers the close event of the Qt main window.

Copy link
Member

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bab580f

scripts/joinmarket-qt.py Outdated Show resolved Hide resolved
Fixes #1024.
Prior to this commit, if the RPC connection were lost
while JoinmarketQt was running, the reactor would be
stopped, but the qt5reactor shutdown does not stop
the Qt Application. This commit fixes that by injecting
a custom reactor stop function wrapper into jmbase,
which triggers the close event of the Qt main window.
@AdamISZ AdamISZ force-pushed the qt-quit-reactor-stop branch from bab580f to cf37639 Compare December 28, 2021 09:15
Copy link
Member

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-ACK cf37639

@AdamISZ AdamISZ merged commit 264b12a into master Dec 28, 2021
@AdamISZ AdamISZ deleted the qt-quit-reactor-stop branch December 28, 2021 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Qt GUI does not show GUI error and does not quit in case RPC connection is lost after wallet loaded
2 participants