Browse Source

Update imapsync_cron.pl

Second unlocking lock_file failed because it was already unlocked.
hunter-nl 6 years ago
parent
commit
e59417ed78
1 changed files with 0 additions and 1 deletions
  1. 0 1
      data/Dockerfiles/dovecot/imapsync_cron.pl

+ 0 - 1
data/Dockerfiles/dovecot/imapsync_cron.pl

@@ -146,7 +146,6 @@ while ($row = $sth->fetchrow_arrayref()) {
     $update = $dbh->prepare("UPDATE imapsync SET last_run = NOW(), is_running = 0 WHERE id = ?");
     $update = $dbh->prepare("UPDATE imapsync SET last_run = NOW(), is_running = 0 WHERE id = ?");
     $update->bind_param( 1, ${id} );
     $update->bind_param( 1, ${id} );
     $update->execute();
     $update->execute();
-    $lockmgr->unlock($lock_file);
   };
   };