Commit a61e41a0700f42eefe428f4354861871840ff6c4

Con Kolivas 2013-08-19T15:58:22

Check for thr->work_restart in restart_wait.