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

Fix sending URI to an already running app instance #38

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

lonemeow
Copy link
Owner

@lonemeow lonemeow commented Aug 3, 2024

If there is already a running app instance, trying to initialize logging will fail since the logfile will already be open for writing.

Reorder the program startup such that the check for already running instance is done before trying to initialize logging.

This also moves the logging initialization after unhandled exception handler is added so that if similar bugs are introduced in future at least the user will get an error message.

Fixes #37

If there is already a running app instance, trying to initialize
logging will fail since the logfile will already be open for writing.

Reorder the program startup such that the check for already running
instance is done before trying to initialize logging.

This also moves the logging initialization after unhandled exception
handler is added so that if similar bugs are introduced in future at
least the user will get an error message.
@lonemeow lonemeow merged commit a5cb78d into main Aug 3, 2024
1 check passed
@lonemeow lonemeow deleted the fix-cmdline-add-uri branch August 3, 2024 16:13
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.

Adding servers by clicking link fails when app is already open
1 participant