Skip to content

Commit

Permalink
Fixes logic error (trigger on false device)
Browse files Browse the repository at this point in the history
  • Loading branch information
mperlet committed May 29, 2019
1 parent 62125bc commit 83fe0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func exit(device string, eventType string, triggerOn string, conf *config) {

for _, hook := range *conf.hooks {

if hook.DeviceID != device && hook.EventType != eventType {
if hook.DeviceID != device || hook.EventType != eventType {
continue
}

Expand Down

0 comments on commit 83fe0da

Please sign in to comment.