Commit 7c89199f authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-641 CleanStates() has to stop after deleting one BS file.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 96bfd35c
......@@ -182,6 +182,7 @@ class FileStateMachine implements IStateMachine {
$file = $this->getFullFilePath($devid, $type, $key, $counter);
ZLog::Write(LOGLEVEL_DEBUG, sprintf("FileStateMachine->CleanStates(): Deleting 'bs' file: '%s'", $file));
unlink($file);
return;
}
$matching_files = glob($this->getFullFilePath($devid, $type, $key). "*", GLOB_NOSORT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment