Revert "Rely on upstream timeout"

This reverts commit f7f0c8c470.
This commit is contained in:
Ingvar Stepanyan
2021-09-14 13:00:54 +00:00
parent f3c8770bb5
commit e1b0fae48c
2 changed files with 4 additions and 1 deletions

View File

@@ -65,6 +65,9 @@ export class Preview extends Component {
canvasHolder 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) { while (this.canvasRef.current) {
try { try {
let blob = await this.props.getPreview(); let blob = await this.props.getPreview();