Browse Source

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

Daniel-Constantin Mierla 3 năm trước cách đây
mục cha
commit
2e62177f7f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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); */