question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

app.quit() is not noticed

See original GitHub issue

Testing if my app is quitting correctly 😄 After app.quit t.context.app.isRunning() still reports true. https://github.com/electron/spectron/blob/aaf7b6964ed32f43c0955b0cb1af5eeb99938db0/lib/application.js#L86 t.context.app.stop() will fail with Error: chrome not reachable. Manually doing t.context.app.running = false; fixes it. Not sure if this should be handled but maybe a note in the readme would be useful. I am leaving it to your judgment 😉

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
alexancommented, Sep 15, 2021

is there any new solution for this problem. I can not get a test working, to check if the application has quit()

0reactions
evertonlperescommented, Oct 14, 2021

Having the same issue and seems app.stop() or app.quit() does not close the app at all 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

app.quit() is not noticed · Issue #131 - GitHub
I am having the same problem. I have some tests that are checking to make sure the app quits when all windows have...
Read more >
is it bad practice to use app.quit() to close all open windows in ...
Second, you ask about using the app.quit() on the 'close' event on the mainWindow ("My question is whether or not this is a...
Read more >
Re: Application.quitting not getting called - Oculus Forum
When we test the logic in the editor, it works just fine. However, on device the code does not get called. I have...
Read more >
icons stay in dock after app quit - Apple Support Communities
I just upgraded to macOS 10.14 (Mojave) and noticed that now, once I am finished using an app and quit it, its icon...
Read more >
app | Electron
quit() , Electron will first try to close all the windows and then emit the will-quit event, and in this case the window-all-closed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found