summaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index e1dacf1..98fc96c 100644
--- a/src/server.c
+++ b/src/server.c
@@ -296,7 +296,7 @@ void sendInfoCreateClient(client_t *client)
thisClient = (client_t *) listClient->list[i];
thisTux = thisClient->tux;
- if( thisTux != client->tux )
+ if( thisTux != NULL && thisTux != client->tux )
{
proto_send_newtux_server(PROTO_SEND_ONE, thisClient, client->tux);
proto_send_newtux_server(PROTO_SEND_ONE, client, thisTux);
@@ -402,6 +402,10 @@ static void eventClientBuffer(client_t *client)
if( strncmp(line, "ping", 4) == 0 )proto_recv_ping_server(client, line);
if( strncmp(line, "end", 3) == 0 )proto_recv_end_server(client, line);
}
+
+#if defined SUPPORT_NET_UNIX_UDP || defined SUPPORT_NET_SDL_UDP
+ client->lastPing = getMyTime();
+#endif
}
}