Fix timeout-related regression in core.discover

Fixes a bug forcing the timeout of the discover function to be 100ms