mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 19:13:28 +08:00
require redis and use reids to check ReAnnounce
This commit is contained in:
@@ -10,8 +10,10 @@ require "bittorrent.php";
|
||||
$fd = fopen(sprintf('%s/nexus_cleanup_cli.lock', sys_get_temp_dir()), 'w+');
|
||||
if (!flock($fd, LOCK_EX|LOCK_NB)) {
|
||||
do_log("can not get lock, skip!");
|
||||
exit();
|
||||
}
|
||||
register_shutdown_function(function () use ($fd) {
|
||||
flock($fd, LOCK_UN);
|
||||
fclose($fd);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user