Skip to content
Snippets Groups Projects
Commit 27cf5623 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

Change the logic of who calls callbacks:

  eb_device_close kills outstanding callbacks, not eb_socket_close.
... to do this, response tracked cycles remember their device.
... and on device close it filters the entire list of awaiting responses.

The reasoning behind this change:
  the user probably has handles to the device in the callback
  if he closes the device, the callbacks might run later with a bad pointer
  instead => kill those callbacks as part of closing the device.
parent b2a07f9e
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment