diff options
Diffstat (limited to 'cpp/src/IcePack/ServerI.cpp')
-rw-r--r-- | cpp/src/IcePack/ServerI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/IcePack/ServerI.cpp b/cpp/src/IcePack/ServerI.cpp index a7bb93fa7c4..81bb4f649f3 100644 --- a/cpp/src/IcePack/ServerI.cpp +++ b/cpp/src/IcePack/ServerI.cpp @@ -229,7 +229,7 @@ IcePack::ServerI::destroy(const Ice::Current& current) void IcePack::ServerI::terminated(const Ice::Current&) { - ServerState newState; + ServerState newState = Inactive; // Initialize to keep the compiler happy. { IceUtil::Monitor< IceUtil::Mutex>::Lock sync(*this); @@ -408,7 +408,9 @@ IcePack::ServerI::stopInternal() { IceUtil::Monitor< IceUtil::Mutex>::Lock sync(*this); +#ifndef NDEBUG ServerState oldState = _state; +#endif while(true) { |