Committed by
Gerrit Code Review
TunnelStore_functionalIssue
Change-Id: Id481538915efb2a4fa8196c3df07f0820acb904d
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -290,9 +290,10 @@ public class DistributedTunnelStore | ... | @@ -290,9 +290,10 @@ public class DistributedTunnelStore |
290 | TunnelSubscription order = new TunnelSubscription(appId, null, null, tunnelId, null, null, | 290 | TunnelSubscription order = new TunnelSubscription(appId, null, null, tunnelId, null, null, |
291 | annotations); | 291 | annotations); |
292 | Tunnel result = tunnelIdAsKeyStore.get(tunnelId); | 292 | Tunnel result = tunnelIdAsKeyStore.get(tunnelId); |
293 | - if (result != null || Tunnel.State.INACTIVE.equals(result.state())) { | 293 | + if (result == null || Tunnel.State.INACTIVE.equals(result.state())) { |
294 | return null; | 294 | return null; |
295 | } | 295 | } |
296 | + | ||
296 | orderSet.add(order); | 297 | orderSet.add(order); |
297 | orderRelationship.put(appId, orderSet); | 298 | orderRelationship.put(appId, orderSet); |
298 | return result; | 299 | return result; | ... | ... |
-
Please register or login to post a comment