Skip to content

Commit

Permalink
Enforce that the current realm is connected while running GATT proced…
Browse files Browse the repository at this point in the history
…ures.

This change makes it so that a disconnect() call takes effect immediately and
prevents any subsequent changes to member variables from a returning GATT
procedure, even if the GATT procedure started before the disconnection. It also
forces all active requests to fail with a NetworkError so that no remnants of
the connection keep running after it's terminated.

This reverses the readValue() promise and event order from #175, in order to
avoid needing to perform a microtask checkpoint inside the algorithm.

Fixes #114. Fixes #171.
  • Loading branch information
jyasskin committed Feb 2, 2016
1 parent 07869af commit c80f37d
Show file tree
Hide file tree
Showing 2 changed files with 351 additions and 121 deletions.
Loading

0 comments on commit c80f37d

Please sign in to comment.