tevent: cancel the timeout timer when the request is finished
commit577afba8b3b75d8ebf8bc496802974b834a53f83
authorStefan Metzmacher <metze@samba.org>
Sat, 17 Sep 2011 17:53:55 +0000 (17 19:53 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Dec 2013 21:46:09 +0000 (11 22:46 +0100)
tree9d0a5ae3bb9d7936825f9c27f3a46da285f24f36
parent646d8c26f82ce3a70b189f618979f63448658c4c
tevent: cancel the timeout timer when the request is finished

As we might defer the callback with tevent_req_defer_callback()
when calling tevent_req_done(), we should cancel the timeout directly.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/tevent/tevent_req.c