diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-04-08 16:38:00 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-04-08 16:38:00 +0200 |
commit | 276e28fe81e7aeef8a4270fb7be3b542688c27e9 (patch) | |
tree | c9d195e4337ecc802bec2b85a026ff1e77eb0ef8 /src/mm-error-helpers.c | |
parent | 8a386218690aeff7e2c923a14f91da7bbc046ed2 (diff) |
port-probe: make sure stored task pointer is set to NULL before completing
When we were completing tasks in idle, the logic was like this:
* Schedule task completion in idle
* self->priv->task = NULL
* (idle) Task completion callback called
This meant that the self->priv->task was always set to NULL before the
completion callback was called, which is what we wanted as a new task may be
scheduled in the callback itself.
Now, without completing in idle, we were wrongly doing:
* Task completion callback called
* self->priv->task = NULL
This commit fixes the logic by making sure self->priv->task = NULL before any
task completion.
Diffstat (limited to 'src/mm-error-helpers.c')
0 files changed, 0 insertions, 0 deletions