diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-05-19 14:16:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-05-19 14:16:37 +0200 |
commit | d6bb1f1d563dd3748813ad7b6f617ddefc3194dd (patch) | |
tree | 79a94564a8381ec22cf96864f34d1386c88996e1 /docs/examples/asiohiper.cpp | |
parent | ce73a30168ee1117984a21a366b05931e87caaad (diff) |
asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input
That means delete the timer.
Reported-by: Michael Kaufmann
Ref: #1253
Diffstat (limited to 'docs/examples/asiohiper.cpp')
-rw-r--r-- | docs/examples/asiohiper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/asiohiper.cpp b/docs/examples/asiohiper.cpp index 2ff0e6404..9e0554f59 100644 --- a/docs/examples/asiohiper.cpp +++ b/docs/examples/asiohiper.cpp @@ -90,7 +90,7 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g) timer.expires_from_now(boost::posix_time::millisec(timeout_ms)); timer.async_wait(boost::bind(&timer_cb, _1, g)); } - else { + else if(timeout_ms == 0) { /* call timeout function immediately */ boost::system::error_code error; /*success*/ timer_cb(error, g); |