1
0
Fork 0
forked from wry/wry

all: add missing object tracking

This commit is contained in:
Julian Orth 2024-07-02 17:01:45 +02:00
parent f94f199ab1
commit 555bd0a1bc
7 changed files with 11 additions and 1 deletions

View file

@ -71,6 +71,7 @@ impl ExtIdleNotifierV1RequestHandler for ExtIdleNotifierV1 {
duration_usec: (req.timeout as u64).max(1000).saturating_mul(1000),
version: self.version,
});
track!(self.client, notification);
self.client.add_client_obj(&notification)?;
let future = self.client.state.eng.spawn(run(notification.clone()));
notification.task.set(Some(future));