Skip to content

Commit

Permalink
Reset current installer process
Browse files Browse the repository at this point in the history
The current_process field was never reset after an installation is
complete. As a consequence, installer_stop() attempted to terminate it,
leading to a warning, at best.
  • Loading branch information
rom1v committed Aug 15, 2018
1 parent cde0b3d commit 2daeb1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/installer.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static int run_installer(void *data) {

for (;;) {
mutex_lock(installer->mutex);
installer->current_process = PROCESS_NONE;
while (!installer->stopped && apk_queue_is_empty(&installer->queue)) {
cond_wait(installer->event_cond, installer->mutex);
}
Expand Down

0 comments on commit 2daeb1f

Please sign in to comment.