2
0
Эх сурвалжийг харах

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

Daniel-Constantin Mierla 3 жил өмнө
parent
commit
2e62177f7f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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); */