diff options
Diffstat (limited to 'cpp/src/IceGrid/SessionI.cpp')
-rw-r--r-- | cpp/src/IceGrid/SessionI.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/SessionI.cpp b/cpp/src/IceGrid/SessionI.cpp index 2f6ced3a1b1..d150fd93f84 100644 --- a/cpp/src/IceGrid/SessionI.cpp +++ b/cpp/src/IceGrid/SessionI.cpp @@ -267,16 +267,15 @@ SessionI::removeAllocationRequest(const AllocationRequestPtr& request) _requests.erase(request); } -bool +void SessionI::addAllocation(const AllocatablePtr& allocatable) { Lock sync(*this); if(_destroyed) { - return false; + throw SessionDestroyedException(); } _allocations.insert(allocatable); - return true; } void |