aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-27 21:24:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-27 21:24:46 +0000
commit3e65062be2e4b5147c10e2b9826fed99678f6169 (patch)
treecf289e0dd8f7706dd458bd100a7c5abb04df1f33 /lib
parent45ffb16c2a6b89ed82232c2a26625dfafcaaba5c (diff)
make sure the alarm is off when returning from curl_easy_perform()
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 4ce6f32aa..1f2c6886f 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -960,6 +960,10 @@ CURLcode Curl_perform(CURL *curl)
conn->newurl = NULL;
}
+ /* make sure the alarm is switched off! */
+ if(data->timeout || data->connecttimeout)
+ myalarm(0);
+
return res;
}