Drop all encryption requests upon disconnection
[platform/core/security/key-manager.git] / src / manager / service / encryption-service.cpp
index f642870..d254be4 100644 (file)
@@ -152,4 +152,12 @@ void EncryptionService::CustomHandle(const SecurityEvent &/*event*/)
        LogError("This should not happend! SecurityEvent was called on EncryptionService!");
 }
 
+void EncryptionService::CustomHandle(const CloseEvent &event)
+{
+       // call the default handler
+       ThreadService::Handle(event);
+
+       m_logic.DropRequests(event.connectionID);
+}
+
 } /* namespace CKM */