summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ReapThread.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/ReapThread.h')
-rw-r--r--cpp/src/IceGrid/ReapThread.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/cpp/src/IceGrid/ReapThread.h b/cpp/src/IceGrid/ReapThread.h
index 317624fcba5..88729d500ac 100644
--- a/cpp/src/IceGrid/ReapThread.h
+++ b/cpp/src/IceGrid/ReapThread.h
@@ -43,42 +43,42 @@ class SessionReapable : public Reapable
public:
SessionReapable(const Ice::LoggerPtr& logger, const TPtr& session) :
- _logger(logger), _session(session)
+ _logger(logger), _session(session)
{
}
virtual ~SessionReapable()
{
}
-
+
virtual IceUtil::Time
timestamp() const
{
- return _session->timestamp();
+ return _session->timestamp();
}
virtual void
destroy(bool shutdown)
{
- try
- {
- if(shutdown)
- {
- _session->shutdown();
- }
- else
- {
- _session->destroy(Ice::Current());
- }
- }
- catch(const Ice::ObjectNotExistException&)
- {
- }
- catch(const Ice::LocalException& ex)
- {
- Ice::Warning out(_logger);
- out << "unexpected exception while reaping session:\n" << ex;
- }
+ try
+ {
+ if(shutdown)
+ {
+ _session->shutdown();
+ }
+ else
+ {
+ _session->destroy(Ice::Current());
+ }
+ }
+ catch(const Ice::ObjectNotExistException&)
+ {
+ }
+ catch(const Ice::LocalException& ex)
+ {
+ Ice::Warning out(_logger);
+ out << "unexpected exception while reaping session:\n" << ex;
+ }
}
private:
@@ -105,8 +105,8 @@ private:
bool _terminated;
struct ReapableItem
{
- ReapablePtr item;
- IceUtil::Time timeout;
+ ReapablePtr item;
+ IceUtil::Time timeout;
};
std::list<ReapableItem> _sessions;
};