mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 21:48:35 +01:00
freebsd_network: Adjust callout_reset to drain not stop callouts.
As we are going to modify func/arg, we need to be sure they are not even executing.
This commit is contained in:
parent
a73773b24e
commit
259f9a76d8
@ -176,7 +176,7 @@ callout_init_mtx(struct callout *c, struct mtx *mtx, int flags)
|
||||
int
|
||||
callout_reset(struct callout *c, int _ticks, void (*func)(void *), void *arg)
|
||||
{
|
||||
int canceled = callout_stop(c);
|
||||
int canceled = callout_drain(c);
|
||||
|
||||
MutexLocker locker(sLock);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user