cleanup temporary directory when restarting and not using XDG_RUNTIME_DIR

fixes #1253
This commit is contained in:
Michael Stapelberg
2014-06-11 09:17:43 +02:00
parent 6fe44d8584
commit 94574db6f6
4 changed files with 66 additions and 2 deletions

View File

@ -783,7 +783,7 @@ To avoid caching:
=cut
sub get_socket_path {
my ($cache) = @_;
$cache ||= 1;
$cache //= 1;
if ($cache && defined($_cached_socket_path)) {
return $_cached_socket_path;