Skip to content

Commit

Permalink
Merge pull request #607 from gao-yan/services-action-conditional-cleanup
Browse files Browse the repository at this point in the history
Build: services: Conditionally clean up services actions
  • Loading branch information
beekhof committed Nov 13, 2014
2 parents c191bf3 + d74b7e6 commit 5370436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/services/services.c
Expand Up @@ -305,6 +305,7 @@ services_action_create_generic(const char *exec, const char *args[])
void
services_action_cleanup(svc_action_t * op)
{
#if SUPPORT_DBUS
if(op->opaque->timerid != 0) {
crm_trace("Removing timer for call %s to %s", op->action, op->rsc);
g_source_remove(op->opaque->timerid);
Expand All @@ -330,6 +331,7 @@ services_action_cleanup(svc_action_t * op)
mainloop_del_fd(op->opaque->stdout_gsource);
op->opaque->stdout_gsource = NULL;
}
#endif
}

void
Expand Down

0 comments on commit 5370436

Please sign in to comment.