Skip to content

Commit

Permalink
Bail out fully if SetCooler() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
daleghent committed Nov 2, 2024
1 parent 9805470 commit a15ec59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/event_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2113,6 +2113,7 @@ static void set_cooler_state(JObj& response, const json_value *params)
if (pCamera->SetCoolerOn(enable))
{
response << jrpc_error(1, "failed to set cooler state");
return;
}

if (enable)
Expand Down

0 comments on commit a15ec59

Please sign in to comment.