summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-12 13:51:27 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-12 14:35:43 +0100
commit68a7be6ab4caf787a0cdd857c9e069210ee5a5bf (patch)
treebf5de09f76de7b3e867f6fb9cd6885ed0d72de3b /source3/smbd
parent6811b47c99c4f8b8331f3a5a5d075e1b162d9472 (diff)
downloadsamba-68a7be6ab4caf787a0cdd857c9e069210ee5a5bf.tar.gz
samba-68a7be6ab4caf787a0cdd857c9e069210ee5a5bf.tar.bz2
samba-68a7be6ab4caf787a0cdd857c9e069210ee5a5bf.zip
s3:smbd/oplock: avoid using server_event_context() in add_oplock_timeout_handler()
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 2d3ce5feaf..48e8bb5d12 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -354,9 +354,9 @@ static void add_oplock_timeout_handler(files_struct *fsp)
}
fsp->oplock_timeout =
- event_add_timed(server_event_context(), fsp,
- timeval_current_ofs(OPLOCK_BREAK_TIMEOUT, 0),
- oplock_timeout_handler, fsp);
+ tevent_add_timer(fsp->conn->sconn->ev_ctx, fsp,
+ timeval_current_ofs(OPLOCK_BREAK_TIMEOUT, 0),
+ oplock_timeout_handler, fsp);
if (fsp->oplock_timeout == NULL) {
DEBUG(0, ("Could not add oplock timeout handler\n"));