mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
r4945: the te element isn't needed any more
In general, now that events are children of the structure they are handling events for, the caller only needs to keep the event handle around if it plans on changing the event flags later (This used to be commit 8c8955155476827408c107af38089c8320631526)
This commit is contained in:
parent
6c14b0133d
commit
4ad08968f6
@ -117,7 +117,6 @@ static NTSTATUS echo_TestEnum(struct dcesrv_call_state *dce_call, TALLOC_CTX *me
|
||||
struct echo_TestSleep_private {
|
||||
struct dcesrv_call_state *dce_call;
|
||||
struct echo_TestSleep *r;
|
||||
struct timed_event *te;
|
||||
};
|
||||
|
||||
static void echo_TestSleep_handler(struct event_context *ev, struct timed_event *te, struct timeval t)
|
||||
@ -159,10 +158,7 @@ static long echo_TestSleep(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_c
|
||||
te.private = p;
|
||||
te.next_event = timeval_add(&dce_call->time, r->in.seconds, 0);
|
||||
|
||||
p->te = event_add_timed(dce_call->event_ctx, &te, p);
|
||||
if (!p->te) {
|
||||
return 0;
|
||||
}
|
||||
event_add_timed(dce_call->event_ctx, &te, p);
|
||||
|
||||
dce_call->state_flags |= DCESRV_CALL_STATE_FLAG_ASYNC;
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user