mirror of
https://github.com/ShaYmez/allmon2-last-heard.git
synced 2026-08-14 15:33:43 -04:00
Dont truncate file
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user