mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The removeListener function didn't actually remove anything from the list because Mojo objects don't maintain their identity when you transfer them through a message pipe. Now we just watch for errors on the listener's pipe, which means the way you stop listening is just to close your end of the pipe.