Fix starting screen captures

Summary:
Starting a screencapture longer than 30 seconds would timeout as the start command waits for the process to finish. Removed that wait is it is the stop command that should only wait for the finish.

(n.b. please ship after accepting, as I'm on PTO)

Reviewed By: LukeDefeo

Differential Revision: D38918570

fbshipit-source-id: fd93e1239985c81a2143ceb79312518e7ebb27f5
This commit is contained in:
Lorenzo Blasa
2022-08-25 02:18:40 -07:00
committed by Facebook GitHub Bot
parent 947d00c6c3
commit dab510c546

View File

@@ -250,8 +250,7 @@ export default class AndroidDevice extends ServerDevice {
}), }),
) )
.then((_) => destination); .then((_) => destination);
// Intentionally not return a promise, this just kicks off the recording!
return this.recordingProcess.then((_) => {});
} }
async stopScreenCapture(): Promise<string> { async stopScreenCapture(): Promise<string> {