Logging bug fix
fix for ONOS-435 Change-Id: I2766e7205ab6173abc427485ecb7697d2743b894
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -206,8 +206,7 @@ public class GossipDeviceStore | ... | @@ -206,8 +206,7 @@ public class GossipDeviceStore |
206 | 206 | ||
207 | backgroundExecutor.shutdownNow(); | 207 | backgroundExecutor.shutdownNow(); |
208 | try { | 208 | try { |
209 | - boolean timedout = backgroundExecutor.awaitTermination(5, TimeUnit.SECONDS); | 209 | + if (!backgroundExecutor.awaitTermination(5, TimeUnit.SECONDS)) { |
210 | - if (timedout) { | ||
211 | log.error("Timeout during executor shutdown"); | 210 | log.error("Timeout during executor shutdown"); |
212 | } | 211 | } |
213 | } catch (InterruptedException e) { | 212 | } catch (InterruptedException e) { | ... | ... |
-
Please register or login to post a comment