Explorar o código

core: tcp - fixed typo on condition introduced in previous commit

Daniel-Constantin Mierla %!s(int64=3) %!d(string=hai) anos
pai
achega
2e62177f7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/tcp_main.c

+ 1 - 1
src/core/tcp_main.c

@@ -1145,7 +1145,7 @@ done:
 	twaitms = 0;
 	do {
 		bytes = recv(c->s, &hdr, size, 0);
-		if(bytes==-1 && errno == EINTR)) {
+		if(bytes==-1 && errno == EINTR) {
 			if(twaitms <= cfg_get(tcp, tcp_cfg, wait_data_ms)) {
 				/* LM_DBG("bytes: %d - errno: %d (%d/%d) - twait: %dms\n", bytes,
 						errno, EINTR, EAGAIN, twaitms); */