diff --git a/socket.c b/socket.c index dfbbf95..d3751fe 100644 --- a/socket.c +++ b/socket.c @@ -138,6 +138,7 @@ int sCleanConnections() { myConnections_t *tmpConnection = 0x0; myConnections_t *delConnection = 0x0; + char output[256]; for (tmpConnection = connections->next;tmpConnection != 0x0;tmpConnection = tmpConnection->next) { if (tmpConnection->userInfo.status == -1) { @@ -164,6 +165,8 @@ tmpConnection = tmpConnection->next; userCount--; + + sprintf(output,"DELETE FROM active WHERE userid = %lld",delConnection->userInfo.uid); //Free the bad connection free(delConnection);