-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix previous commit #42
Conversation
ngaro
commented
Aug 19, 2012
- onFailure instead of onSuccess, otherwise the html doesn't start loading
- stop(), otherwise the html doesn't stop loading
…oading of shutdownpage
Well, actually i need neither onFailure nor onSuccess, it worked just fine without the onSuccess, i didn't see any racecondition. But it never worked for me with onSuccess. |
I'm not experienced in coupling javascript (i actually barely know any javascript) with c++, but if you think the race-condition happens because you can't be sure whether document.write or the shutting down will happen first then i don't think that's a problem. the javascript won't stop running when the c++ is shutdown first and the stop() in the javascript doesn't influence the shutting down of the c++ |
I have committed a fix at 368ae43 to reply to the Web UI before calling qApp->exit(). This way, this should guarantee that onSuccess() is called on Web UI side (no race condition). Hopefully, it now works for you. The remaining issue is the need for stop(). I don't know what it does and it appears to work fine without it so I haven't added back yet. Please shade from light of this. |
I compiled your 368ae and noticed that:
If you compile my code and remove the stop() you will see that your browser
|
The webpage was showing just fine for me on Safari. I have just tried Chrome and it does not show. I'll debug this. |
I would use the src/webui/scripts/mocha-init.js from 0fe09aa and keep the On Mon, Aug 20, 2012 at 7:21 PM, Christophe Dumez
|
I believe I have fixed the race condition in dac0d67. It would be great if you could give it a try. |
works here too, let's keep it like this. |
Great. Thanks for testing. |