diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-11-04 11:37:23 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-11-04 11:37:23 +0100 |
commit | 542318b11361210e84d25e653bee3442fccf6766 (patch) | |
tree | 62b6f422f9b698d30093cc969bd28bacb81aba40 /docs/examples/multi-app.c | |
parent | 909e711e745fe6b23f18dc9780e28a4e19d1a53a (diff) | |
download | curl-542318b11361210e84d25e653bee3442fccf6766.tar.gz |
multi use: call multi_perform even on select() timeouts
Diffstat (limited to 'docs/examples/multi-app.c')
-rw-r--r-- | docs/examples/multi-app.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/examples/multi-app.c b/docs/examples/multi-app.c index 09b91b720..6ba131830 100644 --- a/docs/examples/multi-app.c +++ b/docs/examples/multi-app.c @@ -101,12 +101,8 @@ int main(int argc, char **argv) case -1: /* select error */ break; - case 0: - /* timeout, do something else */ - break; - default: - /* one or more of curl's file descriptors say there's data to read - or write */ + case 0: /* timeout */ + default: /* action */ curl_multi_perform(multi_handle, &still_running); break; } |