Bug 2245 - Fixed critical issues
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / UdpSimpleClient.java
index 52dcb425a1dd32e72459c30bda412c77bb4fcab2..92e88672614c701b74c979fdb52e5b0ef1b24ae1 100644 (file)
@@ -74,7 +74,9 @@ public class UdpSimpleClient implements OFClient {
 
             synchronized (scenarioHandler) {
                 LOGGER.debug("WAITING FOR SCENARIO");
-                scenarioHandler.wait();
+                while (! scenarioHandler.isScenarioFinished()) {
+                    scenarioHandler.wait();
+                }
             }
         } catch (Exception ex) {
             LOGGER.error(ex.getMessage(), ex);