diff --git a/strongback/src/org/strongback/SwitchReactor.java b/strongback/src/org/strongback/SwitchReactor.java index 6c71e8f..f2feffe 100644 --- a/strongback/src/org/strongback/SwitchReactor.java +++ b/strongback/src/org/strongback/SwitchReactor.java @@ -57,7 +57,7 @@ default public void onTriggeredSubmit(Switch swtch, Supplier 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 commandSupplier) { - onTriggered(swtch,()->Strongback.submit(commandSupplier.get())); + onUntriggered(swtch,()->Strongback.submit(commandSupplier.get())); } /** @@ -93,4 +93,4 @@ default public void onUntriggeredSubmit(Switch swtch, Supplier commandS * @param function the function to execute while the switch remains untriggered */ public void whileUntriggered(Switch swtch, Runnable function); -} \ No newline at end of file +}