diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index fb56f366b8..f67bfb41b1 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -509,15 +509,11 @@ class queue if (!sizeof($this->queue_data)) { - @flock($fp, LOCK_UN); - fclose($fp); - unlink($this->cache_file); + @unlink($this->cache_file); } else { $file = 'queue_data=' . $this->format_array($this->queue_data) . '; ?>'; - @flock($fp, LOCK_UN); - fclose($fp); if ($fp = @fopen($this->cache_file, 'w')) {