Make sure netchan is initialized on time.

Connecting to a server sv_timeout seconds after program start was failing
to to the connection instantly timing out.
This commit is contained in:
Bill Currie 2010-11-30 22:35:17 +09:00
parent f87233c69d
commit b1e5a5f4c2

View file

@ -458,6 +458,7 @@ sv_new_f (void)
Hash_Add (server_hash, sv);
sv->con = Connection_Add (&adr, sv, server_challenge);
Netchan_Setup (&sv->netchan, sv->con->address, sv->qport, NC_SEND_QPORT);
server_getchallenge (sv->con, sv);
}