Skip to content

Commit

Permalink
Merge pull request #38 from oviano/client_soft_interrupt_on_cleanup
Browse files Browse the repository at this point in the history
client: use a soft interrupt in client destroy to allow for pending IO
  • Loading branch information
paullouisageneau authored Sep 3, 2024
2 parents 17836a5 + 77547f5 commit 86fdc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void client_destroy(client_t *client) {
PLUM_LOG_DEBUG("Destroying client...");

if (client->is_started) {
client_interrupt(client, true); // stop
client_interrupt(client, false);
thread_join(client->thread, NULL);
}

Expand Down

0 comments on commit 86fdc01

Please sign in to comment.