History

CR

Atlante45 committed 12 years ago

Commit e9826251 parent 958367f3 files · +21 −18Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+1−15
@@ -398,22 +398,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 397 unmodified lines
398398 }
399399
400400 Application::~Application() {
401− // In order to get the end of the session, we nned to give the account manager enough time to send the packet.
402− QEventLoop loop;
403− // Here we connect the callbacks to stop the event loop
404− JSONCallbackParameters params;
405− params.jsonCallbackReceiver = &loop;
406− params.errorCallbackReceiver = &loop;
407− params.jsonCallbackMethod = "quit";
408− params.errorCallbackMethod = "quit";
409− // In case something goes wrong, we also setup a timer so that the delai is not greater than DELAY_TIME
410401 int DELAY_TIME = 1000;
411− QTimer timer;
412− connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
413− // Now we can log it
414− UserActivityLogger::getInstance().close(params);
415− timer.start(DELAY_TIME);
416− loop.exec();
402+ UserActivityLogger::getInstance().close(DELAY_TIME);
417403
418404 qInstallMessageHandler(NULL);
419405

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t