summaryrefslogtreecommitdiff
path: root/Postman/PostmanUtils.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-04-23 21:12:54 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-04-23 21:12:54 +0000
commitab8b46da49e1b2da2710b5c69c7b411d30138ead (patch)
tree0fb99285d3a2d39783b28509eccb2a25fdbfbd04 /Postman/PostmanUtils.php
parentad292885dc7b4c9a070a1c49d8b8e50c741a19db (diff)
downloadPost-SMTP-ab8b46da49e1b2da2710b5c69c7b411d30138ead.zip
* Fix lockfile erros
* Contact form 7 integration * PHP 5.6 requirement git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1863201 b8457f37-d9ea-0310-8a92-e5e31aec5664
Diffstat (limited to 'Postman/PostmanUtils.php')
-rw-r--r--Postman/PostmanUtils.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Postman/PostmanUtils.php b/Postman/PostmanUtils.php
index b70b2b8..7eaebe5 100644
--- a/Postman/PostmanUtils.php
+++ b/Postman/PostmanUtils.php
@@ -243,6 +243,9 @@ class PostmanUtils {
return $success;
}
static function createLockFile( $tempDirectory = null ) {
+ if ( self::lockFileExists() ) {
+ self::deleteLockFile();
+ }
$path = PostmanUtils::calculateTemporaryLockPath( $tempDirectory );
$success = @fopen( $path, 'xb' );
if ( PostmanUtils::$logger->isTrace() ) {