implemented single housekeeping thread for all message wait queues
[public/netxms.git] / src / client / nxevent / nxevent.cpp
index 9e7dc8a..c7bfef0 100644 (file)
@@ -87,6 +87,7 @@ static DWORD SendEvent(int iNumArgs, char **pArgList, BOOL bEncrypt)
             _tprintf(_T("Unable to send event: %s\n"), NXCGetErrorText(dwResult));
       }
       delete session;
+      NXCShutdown();
    }
    return dwResult;
 }