Skip to content

Commit

Permalink
- Bugfixed the error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed Nov 24, 2011
1 parent 1500a82 commit fc62c1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/lib/Munin/Master/UpdateWorker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ sub do_work {
}

# Everything went smoothly.
DEBUG "[DEBUG] Everything went smoothly.";
return 1;

}); # do_in_session
Expand All @@ -253,7 +254,7 @@ sub do_work {
munin_write_storable($state_file, $self->{state});

# This handles failure in do_in_session,
return undef if ! $done || $done->{exit_value};
return undef if ! $done || ! $done->{exit_value};

return {
time_used => Time::HiRes::time - $update_time,
Expand Down

0 comments on commit fc62c1a

Please sign in to comment.