From 5b6be16bf83a7d21c6bfeb9684016ea47b832965 Mon Sep 17 00:00:00 2001 From: Rothanak So Date: Wed, 14 Jun 2017 11:48:55 -0400 Subject: [PATCH] Fix SwitchReactor's onUntriggeredSubmit Changed onTriggered to onUntriggered --- strongback/src/org/strongback/SwitchReactor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}