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});
 }