Rely on upstream timeout
This commit is contained in:
2
deps/libgphoto2
vendored
2
deps/libgphoto2
vendored
Submodule deps/libgphoto2 updated: 951b8364a6...0a29bc9bd2
@@ -65,9 +65,6 @@ export class Preview extends Component {
|
||||
canvasHolder
|
||||
);
|
||||
|
||||
// I have no idea why, but if we connect too soon, it just hangs...
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
|
||||
while (this.canvasRef.current) {
|
||||
try {
|
||||
let blob = await this.props.getPreview();
|
||||
|
||||
Reference in New Issue
Block a user