#3011: Listen to WM_ENDSESSION on Windows
------------------------------+--------------------
Reporter: joeyvh | Owner:
Type: feature-request | Status: new
Priority: minor | Milestone: 1.3.16
Component: GTK UI | Version: 1.3.14
Resolution: | Keywords:
------------------------------+--------------------
Comment (by DjLegolas):
Ok, took some time but I finally tested it in a VM, and it halts the
shutdown.[[BR]]
But, still need to test this in some real-world env, as I only tested it
while creating a torrent to simulate a long operation when the signals are
being sent to Deluge by windows.[[BR]][[BR]]
In addition, It seem as when in thinclient, the daemon does not handles
the message at all.[[BR]]
This update can be found in
[https://github.com/DjLegolas/deluge/commit/360c37eb98b1f91a96ed50a65e492e4ac8684a85
this commit].[[br]][[br]]
Notes:
* I removed `WM_ENDSESSION` handler.
* I removed the duplicate code of the method `quit_gtkui`.
* `quit_gtkui` is now a static method -
`MainWindow._quit_gtkui(shutdown)`.
* The new API's `ShutdownBlockReasonDestroy` function is now being called
when the `gtkui` is shuting down.
* '''Most important''': while testing, I noticed that after 1 minute,
Windows shutdown is be cancelled - but `Deluge` will continue with it's
shutdown and eventually close. Therefor, I can use some statistics
regarding the amount of time it usually takes to close `deluge`.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3011#comment:10>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.