소스 검색

prevent timeout during convert

Nicolas Cannasse 1 년 전
부모
커밋
e8edab4f19
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      hxd/fs/FileConverter.hx

+ 4 - 0
hxd/fs/FileConverter.hx

@@ -326,7 +326,11 @@ class FileConverter {
 		conv.originalFilename = e.name;
 		conv.params = params;
 		onConvert(conv);
+		var prev = hxd.System.allowTimeout;
+		hxd.System.allowTimeout = false;
 		conv.convert();
+		if( prev ) hxd.System.timeoutTick();
+		hxd.System.allowTimeout = prev;
 		conv.srcPath = null;
 		conv.dstPath = null;
 		conv.srcBytes = null;