From 8d90c43bd49c728f3c553a4e4d2ad7d25367a872 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 2 Jun 2006 16:11:51 +0000 Subject: Bug fixes --- cpp/src/IceGrid/SessionI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpp/src/IceGrid/SessionI.cpp') 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 -- cgit v1.2.3