Skip to content

Commit

Permalink
handle Expirable SpaceListeners
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jul 28, 2017
1 parent 82f6363 commit 92b5d37
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,12 @@ public void run() {
if (listeners != null) {
for (int i=0; i<listeners.length; i++) {
Object o = listeners[i];
if (o instanceof SpaceListener)
((SpaceListener) o).notify (key, value);
if (o instanceof TSpace.Expirable) {
o = ((TSpace.Expirable)o).getValue();
}
if (o instanceof SpaceListener) {
((SpaceListener) o).notify(key, value);
}
}
}
}
Expand Down

0 comments on commit 92b5d37

Please sign in to comment.