Fixing fast error with gts bot pid not existing.
This commit is contained in:
parent
72e7459492
commit
4ba198be51
@ -61,7 +61,7 @@ sub startup ($self) {
|
||||
my $gts_bot_pid = path('last_pid_started_gts_bot');
|
||||
if (-f $pidfile) {
|
||||
my $pidfile_content = $pidfile->slurp;
|
||||
if ($pidfile_content eq $gts_bot_pid->slurp) {
|
||||
if (-f $gts_bot_pid && $pidfile_content eq $gts_bot_pid->slurp) {
|
||||
return;
|
||||
}
|
||||
$gts_bot_pid->spew($pidfile_content);
|
||||
|
Loading…
Reference in New Issue
Block a user