FilteredDAOs decorate a sink before calling listen(sink). When
unlisten(sink) is called, the provided sink doesn't match anything in
the daoListeners array since it isn't decorated.
This fix makes FilteredDAO_ decorate the sink before calling
super.unlisten(sink), so that a match will be found and removed
appropriately.
FilteredDAOs decorate a sink before calling listen(sink). When unlisten(sink) is called, the provided sink doesn't match anything in the daoListeners array since it isn't decorated.
This fix makes FilteredDAO_ decorate the sink before calling super.unlisten(sink), so that a match will be found and removed appropriately.