This commit is contained in:
2020-11-11 10:52:53 +08:00
parent 559eed8c6c
commit 744c8f74fa
+2 -3
View File
@@ -52,8 +52,7 @@ trait Action
} else { } else {
$pathId = file_get_contents($socket); $pathId = file_get_contents($socket);
@unlink($socket); @unlink($socket);
clearstatcache($socket); clearstatcache(true, $socket);
if (empty($pathId)) { if (empty($pathId)) {
$this->close($server); $this->close($server);
} else { } else {
@@ -103,7 +102,7 @@ trait Action
$this->closeByPid($content); $this->closeByPid($content);
} else { } else {
@unlink($file->getRealPath()); @unlink($file->getRealPath());
clearstatcache($file->getRealPath()); clearstatcache(true, $file->getRealPath());
} }
} }
return true; return true;