diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-24 22:43:15 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-24 22:43:15 +0200 |
| commit | 10ee4cff7e498a7c31a2cbfc1916f7d795c7aca2 (patch) | |
| tree | e4282fd66ad38ca6f0ea3929c89829dcbb6dca55 /vchat-client.c | |
| parent | ef780ee52da0845fa679c664e106d93d1142c9ef (diff) | |
Remove external status variable from connection code. Use return code to signal dead connection
Diffstat (limited to 'vchat-client.c')
| -rwxr-xr-x | vchat-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vchat-client.c b/vchat-client.c index c094376..d1afaa2 100755 --- a/vchat-client.c +++ b/vchat-client.c | |||
| @@ -397,8 +397,8 @@ void eventloop(void) { | |||
| 397 | userinput(); | 397 | userinput(); |
| 398 | 398 | ||
| 399 | /* something to read from server? */ | 399 | /* something to read from server? */ |
| 400 | if (poll_result & 2) | 400 | if ((poll_result & 2) && vc_receive()) |
| 401 | vc_receive(); | 401 | status = 0; |
| 402 | break; | 402 | break; |
| 403 | } | 403 | } |
| 404 | } | 404 | } |
