Fix. Set timeout before connect. Silly copy-and-paste mistake.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>