Explorar o código

Server: Call AccessControl - closeSession; Fix #3013

Julius Pfrommer %!s(int64=5) %!d(string=hai) anos
pai
achega
230378e775
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/server/ua_session_manager.c

+ 6 - 0
src/server/ua_session_manager.c

@@ -43,6 +43,12 @@ removeSession(UA_SessionManager *sm, session_list_entry *sentry) {
     }
 #endif
 
+    if(sm->server->config.accessControl.closeSession)
+        sm->server->config.accessControl.closeSession(sm->server,
+                                                      &sm->server->config.accessControl,
+                                                      &sentry->session.sessionId,
+                                                      sentry->session.sessionHandle);
+
     /* Detach the Session from the SecureChannel */
     UA_Session_detachFromSecureChannel(&sentry->session);