diff options
Diffstat (limited to 'cpp/test/Ice/retry/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/retry/TestI.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/cpp/test/Ice/retry/TestI.cpp b/cpp/test/Ice/retry/TestI.cpp index 9a0ed3fc81d..b2cbc9900c0 100644 --- a/cpp/test/Ice/retry/TestI.cpp +++ b/cpp/test/Ice/retry/TestI.cpp @@ -43,15 +43,7 @@ RetryI::opIdempotent(int nRetry, const Ice::Current& current) if(nRetry > _counter) { ++_counter; - if(current.con) - { - current.con->close(true); - } - else - { - throw Ice::ConnectionLostException(__FILE__, __LINE__); - } - return 0; + throw Ice::ConnectionLostException(__FILE__, __LINE__); } int counter = _counter; _counter = 0; @@ -61,14 +53,7 @@ RetryI::opIdempotent(int nRetry, const Ice::Current& current) void RetryI::opNotIdempotent(const Ice::Current& current) { - if(current.con) - { - current.con->close(true); - } - else - { - throw Ice::ConnectionLostException(__FILE__, __LINE__); - } + throw Ice::ConnectionLostException(__FILE__, __LINE__); } void |