Dont truncate file

This commit is contained in:
Rob Vella 2020-07-31 20:27:23 -07:00
parent 094a142618
commit 23c9f871bc

View File

@ -140,7 +140,9 @@ class Stream
if ($keyedBefore !== $keyedNow) {
if (filesize($this->streamOutput) >= 4096) {
file_put_contents($this->streamOutput, '');
$so = file_get_contents($this->streamOutput);
$so = substr($so, 2048);
file_put_contents($this->streamOutput, $so);
}
// Permanently set to Allstar for now