diff --git a/xup/xup.c b/xup/xup.c index 5d729c6b..f8a9a4f1 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -173,9 +173,9 @@ lib_mod_connect(struct mod* mod) else { mod->sck = g_tcp_socket(); + g_tcp_set_non_blocking(mod->sck); + g_tcp_set_no_delay(mod->sck); } - g_tcp_set_non_blocking(mod->sck); - g_tcp_set_no_delay(mod->sck); mod->server_msg(mod, "connecting...", 0); if (use_uds) {