foam-framework / foam

Feature-Oriented Active Modeller
Apache License 2.0
787 stars 55 forks source link

Fix FilteredDAO_'s ability to unlisten(). #564

Closed nbegley closed 7 years ago

nbegley commented 7 years ago

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.