Merge pull request #266 from pkg/issue265

fix race w/ open packet and stat