put foreach in a while(true) loop

master
lub 5 years ago
parent 08fca8d441
commit d0565ba96d

@ -7,6 +7,7 @@ $server = TeamSpeak3::factory('serverquery://'.$user.':'.$passwd.'@'.$host.':'.$
$exceptions = array_unique(array_merge($exceptions, $roots));
while(true) {
foreach($roots as $root) {
$root = $server->channelGetByName($root);
$subs = $root->subChannelList();
@ -44,3 +45,5 @@ foreach($roots as $root) {
}
}
}
sleep(1);
}
Loading…
Cancel
Save