3d9a7ed02f
This commit makes scanning work when duration_ms is set to zero. Prior to this it would not work with duration_ms set to zero.