Skip to content
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

Connection with the arlo account not stopping #71

Open
Alexandre-Pe opened this issue Jul 15, 2021 · 5 comments
Open

Connection with the arlo account not stopping #71

Alexandre-Pe opened this issue Jul 15, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Alexandre-Pe
Copy link
Contributor

Hello, I don't why but I couldn't logout from my arlo account.
The Code
from pyaarlo import PyArlo
arlo_account = PyArlo(username=USERNAME, password=PASSWORD)
print(arlo_account.is_connected)
arlo_account.stop()
print(arlo_account.is_connected)
Expected output
True
False
Actual output
True
True

Even after calling arlo_account.stop(), I can still access the cameras, get snapshot, etc..., and the Arlo threads still exist.
Is there something I didn't understand or is it a bug ?

@twrecked
Copy link
Owner

That's what you should call but there could well be a bug.

Can you try adding synchronous_mode=True to the PyArlo code.

@Alexandre-Pe
Copy link
Contributor Author

Even with synchronous_mode=True the ArloBackgroundWorker and ArloEventStream threads are still up and running after calling arlo_account.stop() and I can turn on/off my camera or take snapshots.

@twrecked
Copy link
Owner

After a quick look at the code I think there is a bug there - the code will keep reconnecting.

I'll test it here and push a fix later.

@twrecked twrecked self-assigned this Jul 15, 2021
@twrecked twrecked added the bug Something isn't working label Jul 15, 2021
@Alexandre-Pe
Copy link
Contributor Author

Thank you !

@Alexandre-Pe
Copy link
Contributor Author

Hey ! I was wondering if you found a fix for this bug ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants