fix the accept loop
Merge pull request #1 from buhman/accept-loop

fix the accept loop