summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-10-30 13:13:14 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-10-30 13:13:14 +0000
commita351d456fedcacc6ff407e583bc5cbf9bf5ea8ce (patch)
tree1726d1c66ebf4aa4ecd27f37c17664802235447a /protocols
parent7cb1e39cc777d72792eb19c675c2cd71f25d9fb5 (diff)
NewsAggrefator: fix for a message window freezes while receiving a feed
git-svn-id: http://svn.miranda-ng.org/main/trunk@2114 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/NewsAggregator/Src/Services.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/protocols/NewsAggregator/Src/Services.cpp b/protocols/NewsAggregator/Src/Services.cpp
index b057f515be..72f666fa98 100644
--- a/protocols/NewsAggregator/Src/Services.cpp
+++ b/protocols/NewsAggregator/Src/Services.cpp
@@ -22,16 +22,6 @@ Boston, MA 02111-1307, USA.
int g_nStatus = ID_STATUS_OFFLINE;
UINT_PTR timerId = 0;
-HANDLE hOpenMessageWindow = NULL;
-
-int OnMessageWindowOpen(WPARAM,LPARAM lParam)
-{
- MessageWindowEventData *hWindowEvent = (MessageWindowEventData*) lParam;
- if (hWindowEvent->uType == MSG_WINDOW_EVT_OPENING && IsMyContact(hWindowEvent->hContact))
- CheckCurrentFeed(hWindowEvent->hContact);
- return 0;
-}
-
void SetContactStatus(HANDLE hContact,int nNewStatus)
{
if(DBGetContactSettingWord(hContact,MODULE,"Status",ID_STATUS_OFFLINE) != nNewStatus)
@@ -68,8 +58,6 @@ int NewsAggrInit(WPARAM wParam,LPARAM lParam)
InitIcons();
InitMenu();
- hOpenMessageWindow = HookEvent(ME_MSG_WINDOWEVENT,OnMessageWindowOpen);
-
// timer for the first update
timerId = SetTimer(NULL, 0, 5000, timerProc2); // first update is 5 sec after load
@@ -88,8 +76,6 @@ int NewsAggrPreShutdown(WPARAM wParam,LPARAM lParam)
KillTimer(NULL, timerId);
NetlibUnInit();
- if(hOpenMessageWindow) UnhookEvent(hOpenMessageWindow);
-
return 0;
}