connect_remote() is now always non-blocking

This commit is contained in:
Matt Johnston
2015-02-14 09:56:11 +08:00
parent 2c35f1c8fd
commit 9abcc7b909
5 changed files with 9 additions and 14 deletions

View File

@@ -72,8 +72,7 @@ int main(int argc, char ** argv) {
} else
#endif
{
int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport,
1, &error);
int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, &error);
sock_in = sock_out = sock;
}