Skip to content

Commit

Permalink
Fix IVAO check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Aug 18, 2015
1 parent 95cf9b1 commit 64a2889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions require/class.SBS.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ static function del() {
// Delete old infos
foreach (self::$all_flights as $key => $flight) {
if (isset($flight['lastupdate'])) {
if ($flight['lastupdate'] < (time()-10000)) {
if ($flight['lastupdate'] < (time()-20000)) {
unset(self::$all_flights[$key]);
}
}
}
}

static function add($line) {
global $globalAirportIgnore, $globalFork, $globalDistanceIgnore, $globalDaemon, $globalSBSupdate, $globalDebug;
global $globalAirportIgnore, $globalFork, $globalDistanceIgnore, $globalDaemon, $globalSBSupdate, $globalDebug, $globalIVAO;
date_default_timezone_set('UTC');
// signal handler - playing nice with sockets and dump1090
// pcntl_signal_dispatch();
Expand Down Expand Up @@ -130,7 +130,7 @@ static function add($line) {
}
}
if (!isset($globalFork)) $globalFork = TRUE;
if (function_exists('pcntl_fork') && $globalFork) {
if (function_exists('pcntl_fork') && $globalFork && !$globalIVAO) {
$pids[$id] = pcntl_fork();
if (!$pids[$id]) {
$sid = posix_setsid();
Expand Down

0 comments on commit 64a2889

Please sign in to comment.