Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master: check for timeout before checking for failure to connect.
Without this change, even in the case of timeout you'll have a failure to connect, as $res will be undefined anwyay. Reversing the checks fixes one test as well.
- Loading branch information