Show More
@@ -106,8 +106,11 b' static void readchannel(hgclient_t *hgc)' | |||
|
106 | 106 | assert(hgc); |
|
107 | 107 | |
|
108 | 108 | ssize_t rsize = recv(hgc->sockfd, &hgc->ctx.ch, sizeof(hgc->ctx.ch), 0); |
|
109 | if (rsize != sizeof(hgc->ctx.ch)) | |
|
110 | abortmsg("failed to read channel"); | |
|
109 | if (rsize != sizeof(hgc->ctx.ch)) { | |
|
110 | /* server would have exception and traceback would be printed */ | |
|
111 | debugmsg("failed to read channel"); | |
|
112 | exit(255); | |
|
113 | } | |
|
111 | 114 | |
|
112 | 115 | uint32_t datasize_n; |
|
113 | 116 | rsize = recv(hgc->sockfd, &datasize_n, sizeof(datasize_n), 0); |
General Comments 0
You need to be logged in to leave comments.
Login now