Close connection
Clem- opened this issue · 2 comments
Hi,
I'd like to know how to close the connection to the camera to release it?
It seems that there is no method to do that.
Thanks
Hi
I would also like to find a way to do this.
I am trying to gracefully recover if the camera is disconnected and then reconnected.
At the moment, when the camera is disconnected and reconnected the camera throws an error the next time i call camera.takePicture. My original solution was to call list again but it seems like the list is not refreshed and thus no camera is found. My next solution was to reinitialize the entire GPhoto class by calling new gphoto2.GPhoto2(). However, the underlying intance of gphoto seems to remain causing gphoto actions to be multiplied and eventually resulting in a segfault (139)
My current solution is to restert my docker container whenever i encounter a camera error which is not ideal.
There's still no solution to this; closing for inactivity - feel free to reopen if somebody finds the time to suggest an implementation.