diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-28 13:34:29 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-28 13:34:29 +0000 |
commit | 8258673fb149c915e7b16a191b6a39beb3953c5a (patch) | |
tree | 9689d0a41cd3b72bc4ee77229fa6152e12218775 /cppe/src/IceE/Connection.cpp | |
parent | Added INSTALL for Visual C++ 2005 (diff) | |
download | ice-8258673fb149c915e7b16a191b6a39beb3953c5a.tar.bz2 ice-8258673fb149c915e7b16a191b6a39beb3953c5a.tar.xz ice-8258673fb149c915e7b16a191b6a39beb3953c5a.zip |
Disable setAdapter for blocking connections
Diffstat (limited to 'cppe/src/IceE/Connection.cpp')
-rwxr-xr-x | cppe/src/IceE/Connection.cpp | 9 |
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 |