tlaukkan / zigbee4java

Zigbee API for Java provides simple Java interface to ZigBee network.
Apache License 2.0
144 stars 68 forks source link

Library hangs on shutdown #102

Closed cdjackson closed 7 years ago

cdjackson commented 8 years ago

It seems that the library often (nearly always?) hangs on closing at the following point -:

    /**
     * Requests parser thread to shutdown.
     */
    public void close() {
        this.close = true;
        try {
            parserThread.interrupt();
            parserThread.join();
        } catch (InterruptedException e) {
            logger.warn("Interrupted in packet parser thread shutdown join.");
        }
    }

Presumably the parserThread doesn't quit and it locks at the join.

tlaukkan commented 7 years ago

This is duplicate to #91