[FIX] stratum connect with timeout

i think i found a smarter solution without while and sleep