Compare commits

..

No commits in common. "c37f05bc35b54da2171b755786641012ca0a40ac" and "0c37278ced3ea000ba2bc54aa26c1b84222b4c02" have entirely different histories.

View File

@ -14,9 +14,8 @@ typedef struct {
static void sink_info_callback(pa_context *ctx, const pa_sink_info *info,
int eol, TargetData *target) {
if (info && kill(target->pid, target->signum) < 0) {
ERROR("terget process died\n");
exit(1);
if (info) {
kill(target->pid, target->signum);
}
}
@ -63,10 +62,7 @@ static void state_callback(pa_context *ctx, TargetData *target) {
pa_operation_unref(op);
break;
case PA_CONTEXT_FAILED:
if (kill(target->pid, target->signum) < 0) {
ERROR("terget process died\n");
exit(1);
}
kill(target->pid, target->signum);
break;
default:
break;