diff options
Diffstat (limited to 'protocols/GTalkExt')
-rw-r--r-- | protocols/GTalkExt/src/handlers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/GTalkExt/src/handlers.cpp b/protocols/GTalkExt/src/handlers.cpp index b41905ff03..e1dd02b925 100644 --- a/protocols/GTalkExt/src/handlers.cpp +++ b/protocols/GTalkExt/src/handlers.cpp @@ -323,13 +323,13 @@ extern DWORD itlsRecursion; BOOL SendHandler(IJabberInterface *ji, HXML node, void *pUserData)
{
- if (TlsGetValue(itlsRecursion))
- return FALSE;
HXML queryNode = xi.getChildByAttrValue(node, NODENAME_QUERY, ATTRNAME_XMLNS, DISCOVERY_XMLNS);
if (!queryNode)
return FALSE;
if ( lstrcmp(xi.getName(node), NODENAME_IQ) || lstrcmp(xi.getAttrValue(node, ATTRNAME_TYPE), IQTYPE_GET))
return FALSE;
+ if (TlsGetValue(itlsRecursion))
+ return FALSE;
TlsSetValue(itlsRecursion, (PVOID)TRUE);
@@ -371,7 +371,7 @@ IJabberInterface* IsGoogleAccount(LPCSTR szModuleName) int AccListChanged(WPARAM wParam, LPARAM lParam)
{
if (wParam == PRAC_ADDED) {
- IJabberInterface *ji = IsGoogleAccount(((PROTOACCOUNT*)lParam)->szModuleName);
+ IJabberInterface *ji = getJabberApi(((PROTOACCOUNT*)lParam)->szModuleName);
if (ji)
ji->Net()->AddSendHandler(SendHandler);
}
|