event-listener/tests
John Nunley c2d1ccb7ae
bugfix: Remove listener if one already exists
This commit makes it so EventListener::listen() does not overwrite
existing listeners if they already exist. If the listener is already
registered in an event listener list, it removes the listener from that
list before registering the new listener. This soundness bug was missed
during #94.

This is a patch-compatible fix for #100. We may also want an API-level
fix for #100 as well. This is up for further discussion.

Signed-off-by: John Nunley <dev@notgull.net>
2023-12-18 07:28:51 -08:00
..
notify.rs bugfix: Remove listener if one already exists 2023-12-18 07:28:51 -08:00