Make boolean volatile which is used without synchronization
JavaDoc
Fix subscribing when there are pending notifications