Browse Source

[805] Release on broken rollback

Michal 'vorner' Vaner 13 years ago
parent
commit
c497ad2631
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/server_common/portconfig.cc

+ 4 - 0
src/lib/server_common/portconfig.cc

@@ -151,6 +151,10 @@ installListenAddresses(const AddressList& newAddresses,
         }
         catch (const exception& e2) {
             LOG_FATAL(logger, SRVCOMM_ADDRESS_UNRECOVERABLE).arg(e2.what());
+            // Releasing them should really work
+            AddressList empty;
+            setAddresses(service, empty);
+            addressStore.clear();
         }
         //Anyway the new configure has problem, we need to notify configure
         //manager the new configure doesn't work