fixed an issue with packet re-sync after exception
Merge branch 'master' of https://github.com/acfr/snark