Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move MessageTrackerTest
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
DataChangeListenerRegistrationActor.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationActor.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationActor.java
index 2632498a03a9db3a1f6fd43573e3eb3ce15713f1..29e4a1a9fcfb20ae33091ca0ebc9e90264a676d0 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationActor.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationActor.java
@@
-45,7
+45,11
@@
public class DataChangeListenerRegistrationActor extends AbstractUntypedActor {
private void closeListenerRegistration() {
registration.close();
private void closeListenerRegistration() {
registration.close();
- getSender().tell(CloseDataChangeListenerRegistrationReply.INSTANCE, getSelf());
+
+ if(isValidSender(getSender())) {
+ getSender().tell(CloseDataChangeListenerRegistrationReply.INSTANCE, getSelf());
+ }
+
getSelf().tell(PoisonPill.getInstance(), getSelf());
}
getSelf().tell(PoisonPill.getInstance(), getSelf());
}