--- a/uiacceltk/hitchcock/goommonitor/src/goomcloseapp.cpp Tue Jun 22 12:40:35 2010 +0300
+++ b/uiacceltk/hitchcock/goommonitor/src/goomcloseapp.cpp Tue Jul 06 14:56:00 2010 +0300
@@ -153,6 +153,7 @@
// Start a timer and the thread watcher
iAppCloseTimer->SetState(CGOomAppCloseTimer::EGOomAppClosing);
iAppCloseTimer->After(iCloseTimeout * 1000);
+ iAppCloseWatcher->Start(iCurrentTask);
// Tell the app to close
// We are not asking system applications to exit anyway, so we'll send legacy event only
// even we have powermgmt capability
@@ -184,7 +185,8 @@
}
if(IsConsumingMemory(iWgId))
- {
+ {
+ TRACES1("REST IN PEACE - App wgid %d", iWgId);
iCurrentTask.KillTask();
iAppCloserRunning = EFalse; // not sure if intended (?)
iAppCloseTimer->SetState(CGOomAppCloseTimer::EGOomAppKilled);
@@ -192,9 +194,10 @@
}
else
{ // application has released its graphics resources -> we are no more interested about it
- CloseAppEvent();
+ //CloseAppEvent();
+ iAppCloserRunning = EFalse;
+ MemoryFreed(KErrNone);
}
- //MemoryFreed(KErrNone);
}
void CGOomCloseApp::KillTaskWaitDone()