Permalink
Browse files

Merge pull request #112 from rothso/switchreactor-patch

Fix SwitchReactor's onUntriggeredSubmit
  • Loading branch information...
rhauch committed Jun 14, 2017
2 parents aeb27dc + 5b6be16 commit dc1914a3f91db91d5cb0c8376237e662481d4989
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 dc1914a

Please sign in to comment.