summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/Connection.cpp')
-rwxr-xr-xcppe/src/IceE/Connection.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cppe/src/IceE/Connection.cpp b/cppe/src/IceE/Connection.cpp
index 6c8787f94f4..9dbfbde9092 100755
--- a/cppe/src/IceE/Connection.cpp
+++ b/cppe/src/IceE/Connection.cpp
@@ -809,9 +809,12 @@ Ice::Connection::setAdapter(const ObjectAdapterPtr& adapter)
{
IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
- //
- // TODO: Add support for blocking mode here!
- //
+ if(_blocking)
+ {
+ FeatureNotSupportedException ex(__FILE__, __LINE__);
+ ex.unsupportedFeature = "setAdapter with blocking connection";
+ throw ex;
+ }
//
// Wait for all the incoming to be dispatched. We can't modify the