Skip to content

Commit

Permalink
FLUME-2952. SyslogAgent: Avoid NPE on stop()
Browse files Browse the repository at this point in the history
Minor test bug fix

Reviewed by Hari.
  • Loading branch information
mpercy committed Jul 14, 2016
1 parent ec28b66 commit c7de4ba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ public boolean isRunning() throws Exception {
}

public void stop() throws Exception {
client.close();
if (client != null) {
client.close();
}
client = null;

StagedInstall.getInstance().stopAgent();
Expand Down

0 comments on commit c7de4ba

Please sign in to comment.