diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_search.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_search.cpp | 10 |
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)
|