Synchornized around wait (threads)
Merge branch 'master' of https://github.com/Kinterror/cnp.git