Fix timeout-related regression in core.discover

Fixes a bug forcing the timeout of the discover function to be 100ms
Merge pull request #244 from hkhanna/discover-timeout-fix

Fix timeout-related regression in core.discover.