summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Application.cpp')
-rw-r--r--cpp/src/Ice/Application.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/Ice/Application.cpp b/cpp/src/Ice/Application.cpp
index 1fafb4370bb..c826f07524e 100644
--- a/cpp/src/Ice/Application.cpp
+++ b/cpp/src/Ice/Application.cpp
@@ -341,9 +341,8 @@ Ice::Application::holdInterrupt()
Mutex::Lock lock(_mutex); // we serialize all the interrupt-setting
if(_released)
{
- _previousCallback = _ctrlCHandler->getCallback();
_released = false;
- _ctrlCHandler->setCallback(holdInterruptCallback);
+ _previousCallback = _ctrlCHandler->setCallback(holdInterruptCallback);
}
// else, we were already holding signals
}