Committed by
Gerrit Code Review
Moving connectDevices() for Netconf and Rest in activate to executor
Change-Id: I545aa19dad8f6c0f4d429052214e8d9df569a059
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -118,7 +118,7 @@ public class NetconfDeviceProvider extends AbstractProvider | ... | @@ -118,7 +118,7 @@ public class NetconfDeviceProvider extends AbstractProvider |
118 | cfgService.registerConfigFactory(factory); | 118 | cfgService.registerConfigFactory(factory); |
119 | cfgService.addListener(cfgLister); | 119 | cfgService.addListener(cfgLister); |
120 | controller.addDeviceListener(innerNodeListener); | 120 | controller.addDeviceListener(innerNodeListener); |
121 | - connectDevices(); | 121 | + executor.execute(NetconfDeviceProvider.this::connectDevices); |
122 | log.info("Started"); | 122 | log.info("Started"); |
123 | } | 123 | } |
124 | 124 | ... | ... |
... | @@ -130,7 +130,7 @@ public class RestDeviceProvider extends AbstractProvider | ... | @@ -130,7 +130,7 @@ public class RestDeviceProvider extends AbstractProvider |
130 | providerService = providerRegistry.register(this); | 130 | providerService = providerRegistry.register(this); |
131 | cfgService.registerConfigFactory(factory); | 131 | cfgService.registerConfigFactory(factory); |
132 | cfgService.addListener(cfgLister); | 132 | cfgService.addListener(cfgLister); |
133 | - connectDevices(); | 133 | + executor.execute(RestDeviceProvider.this::connectDevices); |
134 | log.info("Started"); | 134 | log.info("Started"); |
135 | } | 135 | } |
136 | 136 | ... | ... |
-
Please register or login to post a comment