mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
(Update) FlushController
This commit is contained in:
@@ -42,7 +42,7 @@ class FlushController extends Controller
|
||||
public function deleteOldPeers()
|
||||
{
|
||||
foreach (Peer::all() as $peer) {
|
||||
if ((time() - strtotime($peer->updated_at)) > (60 * 60)) {
|
||||
if ((time() - strtotime($peer->updated_at)) > (60 * 60 * 2)) {
|
||||
$history = History::where("info_hash", $peer->info_hash)->where("user_id", $peer->user_id)->first();
|
||||
if ($history) {
|
||||
$history->active = false;
|
||||
|
||||
Reference in New Issue
Block a user