]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
lrm: catch repeated calls to shutdown_request
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Dec 2015 08:32:46 +0000 (09:32 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Dec 2015 08:33:22 +0000 (09:33 +0100)
src/PVE/HA/LRM.pm

index 43b7b334d6118a0cd05713312928ec196431cc97..8d6ce8be762887cca4afde7f9c33e11b3a2fd224 100644 (file)
@@ -43,6 +43,8 @@ sub new {
 sub shutdown_request {
     my ($self) = @_;
 
+    return if $self->{shutdown_request}; # already in shutdown mode
+
     my $haenv = $self->{haenv};
 
     my $shutdown = $haenv->is_node_shutdown();