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 watcher mode #149

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Fix watcher mode #149

merged 1 commit into from
Nov 21, 2023

Conversation

joanlopez
Copy link
Member

The watcher mode (-w) is working only partially because once there's a change detected, it shut downs the existing server and initializes another one, but doesn't update the reference, so on the following updates, the newer server is not being shutdown, causing bind: address already in use error.

So, this PR basically ensures that the watcher callback updates the reference to the server with the new one on every "restart" (after every event detected by the watcher).

Fixes #148

@joanlopez joanlopez added the bug Something isn't working label Nov 18, 2023
@joanlopez joanlopez requested a review from aperezg November 18, 2023 20:06
@joanlopez joanlopez self-assigned this Nov 18, 2023
Copy link
Member

@aperezg aperezg left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM!!

@joanlopez joanlopez merged commit 8ff948c into main Nov 21, 2023
1 check passed
@joanlopez joanlopez deleted the fix-148 branch November 24, 2023 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Watcher mode not working
2 participants