added: sessions data for plugins (plugindata.h plugindata.cpp)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@598 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -132,6 +132,12 @@ void RequestController::SaveSessions()
|
||||
}
|
||||
|
||||
|
||||
void RequestController::DeleteAllPluginsData()
|
||||
{
|
||||
session_manager.DeleteAllPluginsData();
|
||||
}
|
||||
|
||||
|
||||
void RequestController::SaveSessionsIfNeeded()
|
||||
{
|
||||
time_t t = time(0);
|
||||
@@ -207,17 +213,21 @@ void RequestController::Loop()
|
||||
request.SendAll();
|
||||
notify.ItemChanged(request.notify_code);
|
||||
}
|
||||
catch(const std::logic_error & e)
|
||||
{
|
||||
log << log1 << "std logic exception: " << e.what() << logend;
|
||||
}
|
||||
catch(const std::exception & e)
|
||||
{
|
||||
log << log1 << "uncaught std exception: " << e.what() << logend;
|
||||
log << log1 << "std exception: " << e.what() << logend;
|
||||
}
|
||||
catch(const Error & e)
|
||||
{
|
||||
log << log1 << "uncaught exception: Error: " << e << logend;
|
||||
log << log1 << "exception: Error: " << e << logend;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
log << log1 << "uncaught exception" << logend;
|
||||
log << log1 << "uncaught unknown exception" << logend;
|
||||
}
|
||||
|
||||
SaveSessionsIfNeeded();
|
||||
|
Reference in New Issue
Block a user