Committed by
Gerrit Code Review
Fix a bug in link up/down handling discovered by STC
Change-Id: I8e1257b8ea3592b7695e5a5dded43286f5b29d3b
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -60,7 +60,7 @@ class Compiling implements IntentProcessPhase { | ... | @@ -60,7 +60,7 @@ class Compiling implements IntentProcessPhase { |
60 | return Optional.of(new Installing(processor, new IntentData(data, compiled), stored)); | 60 | return Optional.of(new Installing(processor, new IntentData(data, compiled), stored)); |
61 | } catch (IntentException e) { | 61 | } catch (IntentException e) { |
62 | log.debug("Unable to compile intent {} due to: {}", data.intent(), e); | 62 | log.debug("Unable to compile intent {} due to: {}", data.intent(), e); |
63 | - if (stored.filter(x -> x.installables().isEmpty()).isPresent()) { | 63 | + if (stored.filter(x -> !x.installables().isEmpty()).isPresent()) { |
64 | // removing orphaned flows and deallocating resources | 64 | // removing orphaned flows and deallocating resources |
65 | return Optional.of(new Withdrawing(processor, new IntentData(data, stored.get().installables()))); | 65 | return Optional.of(new Withdrawing(processor, new IntentData(data, stored.get().installables()))); |
66 | } else { | 66 | } else { | ... | ... |
-
Please register or login to post a comment