Github user bbende commented on the pull request:
https://github.com/apache/nifi/pull/189#issuecomment-174615789
Pushed up a new commit that combines stop() and close() into a single call
for simplicity, basically preventing someone from calling close() without
calling stop().
Added additional checks on the stopped flag in the run method:
* Right after returning from select which should happen during close() when
selector.wakeup() is called and stopped is already true
* While looping over the selected keys in run() so that we don't modify the
keys after being stopped
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---