Rely on upstream timeout

This commit is contained in:
Ingvar Stepanyan
2021-09-14 11:20:23 +00:00
parent b3d1e668b2
commit f7f0c8c470
2 changed files with 1 additions and 4 deletions

View File

@@ -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();