Hi,
I'd like to ask, what is the safe way to stop controller?
As if it's started in some thread and I try to stop it from different
one calling controller.stop() - then controller's working thread is
starting to throw exceptions [1]...
Am I doing something wrong? Or it's a bug?
Thanks.
WBR,
Alexey.
[1] java.nio.channels.ClosedSelectorException
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:66)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:221)
at com.sun.grizzly.Controller.doSelect(Controller.java:186)
at com.sun.grizzly.Controller.start(Controller.java:364)