Reenabled integration tests
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / MDController.java
index 65ab9231a62703af81a857fdbcc16ecb14e3b667..89d6ccd06a2c9c2f8192a5ba3821aa62addc63c3 100644 (file)
@@ -192,6 +192,11 @@ public class MDController implements IMDController, AutoCloseable {
         // setup handler
         SwitchConnectionHandlerImpl switchConnectionHandler = new SwitchConnectionHandlerImpl();
         switchConnectionHandler.setMessageSpy(messageSpyCounter);
+
+        ErrorHandlerQueueImpl errorHandler = new ErrorHandlerQueueImpl();
+        new Thread(errorHandler).start();
+        
+        switchConnectionHandler.setErrorHandler(errorHandler);
         switchConnectionHandler.init();
         
         switchConnectionProvider.setSwitchConnectionHandler(switchConnectionHandler);