-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lingering device with sweepjs bindings #69
Comments
The Sweep device is always getting cleaned up by means of a ref counted ptr
Ref counted because there might be a async. callback still in flight.
|
Hmmm.... Those links make sense to me, but #71 did not appear to fix the issue. Upon further inspection, it seems the example First, I noticed that I was seeing odd behavior when experimenting with But I had to place the Line 38 in a3f9553
Obviously this isn't ideal. @daniel-j-h Do you have any ideas what might be causing this behavior. |
The problem here is the a();
sweep.scan((err, result) => {
b();
});
c(); The only guarantee you have is: |
I responded in the PR #75 |
Something appears to be persisting after using the sweepjs bindings. Attempting to use an alternate method of interfacing with the device (ie: the sweep-visualizer) after running the sweepjs example requires that the device be reset. This is not the case with the sweeppy python bindings. My best guess is that the python bindings properly cleanup and and destroy the device on exit, while perhaps the sweepjs bindings do not?
The text was updated successfully, but these errors were encountered: