Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Fix infinite loop when waiting for motion status #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix infinite loop when waiting for motion status #161

wants to merge 1 commit into from

Conversation

fotiDim
Copy link

@fotiDim fotiDim commented Apr 1, 2016

This PR fixes a very important issue. I had an infinite loop when I was waiting for motion status. I noticed this accidentally in my app's last version. This used to work and I am not sure what broke it (iOS 9 or some other change in the library) but it should work fine after merging this.

@nickoneill
Copy link
Owner

Hey @Navideck-fotis, thanks for reporting this. Does this occur whenever you request motion or just in some unusual cases?

@fotiDim
Copy link
Author

fotiDim commented Apr 1, 2016

It happens every time. I guess nobody else tested motion or maybe they overlooked it.

As an additional safety measure maybe we could add a timeout to the waiting loop.

@fotiDim
Copy link
Author

fotiDim commented Apr 29, 2016

@nickoneill any updates on this?

@nickoneill
Copy link
Owner

I have a day scheduled for open source work early next week, I'll make all these changes and a new release then.

@fotiDim
Copy link
Author

fotiDim commented Aug 25, 2016

Ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants