浏览代码

Add cooldown

Billy Barrow 1 月之前
父节点
当前提交
5a6e3083df
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Application.vala

+ 4 - 0
src/Application.vala

@@ -37,6 +37,10 @@ namespace Webmify {
         queue.parallel_iterate(path => {
             var filename = Path.get_basename(path);
             print(@"Dequeue \"$filename\"\n");
+            
+            // Cooldown to allow for file to fully copy
+            Thread.usleep(10000000);
+            
             var video_file = File.new_for_path(path);
             var video_info = new VideoInfo(video_file);
             video_info.read_info();