Skip to content

Commit 2c7c9e5

Browse files
author
dawood Ikhlaq
committed
bug fixes
1 parent 758747b commit 2c7c9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ScreenRecorder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ public function startRecording($pathToSaveVideo=null,$sleep=2)
102102
*/
103103
public function stopRecording($sleep=2)
104104
{
105+
sleep($sleep);
105106
if(!$this->process->getPid())
106107
{
107108
throw new \Exception("Some error occurred during recording, verify your provided options");
108109
}
109110
$this->process->signal(9);
110111
unset($this->process);
111-
sleep($sleep);
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)