George S. Baugh 4 년 전
부모
커밋
22a50ec712
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/Playwright/Util.pm

+ 1 - 0
lib/Playwright/Util.pm

@@ -62,6 +62,7 @@ sub _child ($filename,$subroutine) {
 
 sub await ($to_wait) {
     waitpid($to_wait->{pid},0);
+    confess("Timed out while waiting for event.") unless -f $to_wait->{file} && -s _;
     return Sereal::Decoder->decode_from_file($to_wait->{file});
 }