207208209210211212213214215216217
branch.setActive(false); Receiver receiver = branch.getConsumerReceiver(); synchronized (receiver) { receiver.notifyAll(); } receiver = branch.getProducerReceiver(); synchronized (receiver) {
213214215216217218219220221222223
} receiver = branch.getProducerReceiver(); synchronized (receiver) { receiver.notifyAll(); } } notifyAll(); }