diff options
Diffstat (limited to 'cpp/src/IceGrid/ServerI.cpp')
-rw-r--r-- | cpp/src/IceGrid/ServerI.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp index 2df872dd65a..ffc96e2e6fa 100644 --- a/cpp/src/IceGrid/ServerI.cpp +++ b/cpp/src/IceGrid/ServerI.cpp @@ -965,8 +965,6 @@ ServerI::checkDestroyed() void ServerI::disableOnFailure() { - assert(_state != Deactivating); // This must be called before switching to the Deactivating state. - // // If the server is already disabled, nothing to do. // @@ -980,7 +978,7 @@ ServerI::disableOnFailure() // is always and the server wasn't active at the time of the // failure we disable the server. // - if(_disableOnFailure != 0 || _activation == Always && _state != Active) + if(_disableOnFailure != 0 || _activation == Always && (_state == Activating || _state == WaitForActivation)) { _previousActivation = _activation; _activation = Disabled; |