CartClash
CartClash

Reputation: 55

Eel server crashes when computer sleeps

I'm using Eel version 0.14.0

Whenever I'm running an eel project, once the computer sleeps and I eventually turn it back on, I've found that the command window has closed and when I reload the page, I get the error localhost refused to connect. This issue persists even when the program is converted to an exe using pyinstaller and even when the program in run in IDLE. This happens with EVERY eel project I've made using v0.14.0

Steps to reproduce the behavior:

Before computer sleeps(Command window/server still open):

example

After computer sleeps(Command window/server closed):

enter image description here

Eel window after computer sleeps:

example3

Upvotes: 3

Views: 250

Answers (1)

JZILLA777
JZILLA777

Reputation: 41

The server should not be able to run whilst the PC is in sleep mode, power save mode, or turned off. If the computer isn't active then the server can't be either.

You can read more about "Sleep mode" (aka Suspend to RAM) here: https://en.wikipedia.org/wiki/Sleep_mode

Upvotes: 0

Related Questions