X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FClientSocket.c;h=80f4c37d2cae7f73fa4cdd4b996858bfa528d551;hb=64122d18ddffb83f70192a1036c4fc601485a0cd;hp=83a2e281c8bf8bf91a4cdc6edbbd0dfde6223954;hpb=71424ec1a4cf4138577b00ed417993f69dfc8936;p=NeonServV5.git diff --git a/src/ClientSocket.c b/src/ClientSocket.c index 83a2e28..80f4c37 100644 --- a/src/ClientSocket.c +++ b/src/ClientSocket.c @@ -445,9 +445,11 @@ void socket_loop(int timeout_seconds) { sock->bufferpos -= used; } is_synchronized = 0; + unsigned long tid = syscall(SYS_gettid); + whohandler_start_of_recv(sock, tid); DESYNCHRONIZE(synchronized_recv); parse_lines(sock, linesbuf, used); - whohandler_end_of_recv(sock); //WHOHandler hack (unlock WHOQueue mutexes) + whohandler_end_of_recv(sock, tid); //WHOHandler hack (unlock WHOQueue mutexes) #else int used = parse_lines(sock, sock->buffer, sock->bufferpos); if(used == sock->bufferpos + 1) {