PermissionScope icon indicating copy to clipboard operation
PermissionScope copied to clipboard

Fix infinite loop when waiting for motion status

Open fotiDim opened this issue 9 years ago • 5 comments

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.

fotiDim avatar Apr 01 '16 07:04 fotiDim

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

nickoneill avatar Apr 01 '16 14:04 nickoneill

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 avatar Apr 01 '16 14:04 fotiDim

@nickoneill any updates on this?

fotiDim avatar Apr 29 '16 07:04 fotiDim

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

nickoneill avatar May 06 '16 15:05 nickoneill

Ping

fotiDim avatar Aug 25 '16 20:08 fotiDim