summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_search.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-01 18:44:27 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-01 18:44:27 +0000
commit1c0ee54dedd808a106ca64edd249598def1c9ed3 (patch)
treec9d7886c50aa4dbeed72e60c979229d23cec9ab1 /protocols/SkypeWeb/src/skype_search.cpp
parentc77bc8ad3240272d3c784aa79b153b3d1cab726d (diff)
SkypeWeb: More fixes & optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@14783 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_search.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_search.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_search.cpp b/protocols/SkypeWeb/src/skype_search.cpp
index 3343dd5f2d..a5f25d5247 100644
--- a/protocols/SkypeWeb/src/skype_search.cpp
+++ b/protocols/SkypeWeb/src/skype_search.cpp
@@ -26,11 +26,11 @@ HANDLE CSkypeProto::SearchBasic(const TCHAR* id)
void CSkypeProto::SearchBasicThread(void* id)
{
debugLogA("CSkypeProto::OnSearchBasicThread");
- if (!IsOnline())
- return;
-
- ptrA string(mir_urlEncode(T2Utf((TCHAR *)id)));
- SendRequest(new GetSearchRequest(m_szTokenSecret, string), &CSkypeProto::OnSearch);
+ if (IsOnline())
+ {
+ ptrA szString(mir_urlEncode(T2Utf((TCHAR*)id)));
+ SendRequest(new GetSearchRequest(m_szTokenSecret, szString), &CSkypeProto::OnSearch);
+ }
}
void CSkypeProto::OnSearch(const NETLIBHTTPREQUEST *response)