#2016: Clean exit verification with state backup
---------------------------------------------------------------+------------
 Reporter:  Chotaz                                             |       Owner:  
Cas     
     Type:  feature-request                                    |      Status:  
assigned
 Priority:  minor                                              |   Milestone:  
1.4.0   
Component:  core                                               |     Version:  
1.3.3   
 Keywords:  clean exit force killing cache torrent list stats  |  
---------------------------------------------------------------+------------

Comment(by Cas):

 Actually this is the discussed pseudocode:

 {{{
 On startup:

 os.path.exists("state_file_test"):
     copy("torrents.state.prev", permanent dir/name)
     copy("torrents.state", permanent dir/name)
     Warn user?

 cp torrents.state to torrents.state.prev

 load_state...


 on shutdown:
    save state
    delete "state_file_test"
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2016#comment:4>
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 http://groups.google.com/group/deluge-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to