From 542318b11361210e84d25e653bee3442fccf6766 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 4 Nov 2010 11:37:23 +0100 Subject: multi use: call multi_perform even on select() timeouts --- docs/examples/smtp-multi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'docs/examples/smtp-multi.c') diff --git a/docs/examples/smtp-multi.c b/docs/examples/smtp-multi.c index 0a7aeebf9..239172ba9 100644 --- a/docs/examples/smtp-multi.c +++ b/docs/examples/smtp-multi.c @@ -174,12 +174,8 @@ int main(void) 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(mcurl, &still_running); break; } -- cgit v1.2.3