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

Store pointer to boost::asio::signal_set and cancel when ipc_server::stop is called. #4367

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

clemahieu
Copy link
Contributor

Previously the signals weren't cancelled on ipc_server and would remain running until the io_context was destroyed.

@clemahieu clemahieu requested a review from dsiganos January 18, 2024 01:33
@dsiganos
Copy link
Contributor

I think we should try to follow the pattern we started of calling stop() to an object and not stopping from the destructor.
In order to do that, we need to rethink the start and stop of all the pic and roc classes.
I started to do that but I found the code very unreadable. So I started with a some refactoring first:
#4370

…stop is called.

Previously the signals weren't cancelled on ipc_server and would remain running until the io_context was destroyed.
@clemahieu clemahieu merged commit ef25ca6 into nanocurrency:develop Feb 6, 2024
17 of 19 checks passed
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.

2 participants