Unbreak ktunnel example after recent changes.

This commit is contained in:
Joris Vink 2015-09-03 08:24:55 +02:00
parent 63dc498807
commit b5736ef158
1 changed files with 1 additions and 2 deletions

View File

@ -115,7 +115,7 @@ ktunnel_pipe_create(struct connection *c, const char *host, const char *port)
return (KORE_RESULT_ERROR);
}
if (!kore_connection_nonblock(fd)) {
if (!kore_connection_nonblock(fd, 1)) {
close(fd);
return (KORE_RESULT_ERROR);
}
@ -138,7 +138,6 @@ ktunnel_pipe_create(struct connection *c, const char *host, const char *port)
c->disconnect = ktunnel_pipe_disconnect;
cpipe->disconnect = ktunnel_pipe_disconnect;
kore_worker_connection_add(cpipe);
kore_connection_start_idletimer(cpipe);
kore_platform_event_all(cpipe->fd, cpipe);