Permalink
Browse files

Fix SwitchReactor's onUntriggeredSubmit

Changed onTriggered to onUntriggered
  • Loading branch information...
rothso committed Jun 14, 2017
1 parent aeb27dc commit 5b6be16bf83a7d21c6bfeb9684016ea47b832965
Showing with 2 additions and 2 deletions.
  1. +2 −2 strongback/src/org/strongback/SwitchReactor.java
@@ -57,7 +57,7 @@ default public void onTriggeredSubmit(Switch swtch, Supplier<Command> commandSup
* @param commandSupplier the supplier of the command to submit; may not be null but may return a null command
*/
default public void onUntriggeredSubmit(Switch swtch, Supplier<Command> commandSupplier) {
onTriggered(swtch,()->Strongback.submit(commandSupplier.get()));
onUntriggered(swtch,()->Strongback.submit(commandSupplier.get()));
}
/**
@@ -93,4 +93,4 @@ default public void onUntriggeredSubmit(Switch swtch, Supplier<Command> commandS
* @param function the function to execute while the switch remains untriggered
*/
public void whileUntriggered(Switch swtch, Runnable function);
}
}

0 comments on commit 5b6be16

Please sign in to comment.