diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-30 18:27:55 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-10-04 15:41:47 +0300 |
commit | 6e129da180c7118b780052b75f11d1a9ebeae931 (patch) | |
tree | d89d35dfc8b68b0e0031c74dfc6cfc889984b644 /ncp-web/ncp-output.php | |
parent | 99126b6144e977c3fc5289135623d6d480166a35 (diff) |
ncp-web: small fixesv0.31.8
Diffstat (limited to 'ncp-web/ncp-output.php')
-rw-r--r-- | ncp-web/ncp-output.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ncp-web/ncp-output.php b/ncp-web/ncp-output.php index 750c71c6..6450250a 100644 --- a/ncp-web/ncp-output.php +++ b/ncp-web/ncp-output.php @@ -48,6 +48,12 @@ function follow($file) $size = 0; while (true) { + if ( !file_exists($file) ) + { + usleep(200000); // 0.2s + continue; + } + clearstatcache(); $currentSize = filesize($file); if ($size == $currentSize) |