#2328: Exception when stopping daemon after switching from classic to thenclient
mode without restart
---------------------+------------------------------------------------------
 Reporter:  Cas      |       Owner:                      
     Type:  bug      |      Status:  new                 
 Priority:  trivial  |   Milestone:  1.4.0               
Component:  gtkui    |     Version:  develop (git branch)
 Keywords:           |  
---------------------+------------------------------------------------------
 The daemon appears to stop ok but I don't think the gtkui is correctly
 setup after switching from classic to thinclient (without restarting) and
 throws the following exception:

 {{{
 [ERROR   ][deluge.component                   :152 ] [Failure instance:
 Traceback: <type 'exceptions.AssertionError'>: Tried to stop a LoopingCall
 that was not running.
 deluge/ui/gtkui/gtkui.py:449:__on_disconnect
 deluge/component.py:338:stop
 deluge/component.py:342:stop
 deluge/component.py:158:_component_stop
 --- <exception caught here> ---
 /usr/lib/python2.7/dist-
 packages/twisted/internet/defer.py:134:maybeDeferred
 deluge/core/torrentmanager.py:247:stop
 /usr/lib/python2.7/dist-packages/twisted/internet/task.py:171:stop
 ]
 14:23:38.283 [ERROR   ][twisted                            :532 ]
 Unhandled error in Deferred:
 Unhandled error in Deferred:
 14:23:38.309 [ERROR   ][twisted                            :532 ]
 Unhandled Error
 Traceback (most recent call last):
   File "deluge/ui/gtkui/gtkui.py", line 449, in __on_disconnect
     component.stop()
   File "deluge/component.py", line 338, in stop
     d =
 self.stop(self.dependents[name]).addCallback(on_dependents_stopped, name)
   File "deluge/component.py", line 342, in stop
     deferreds.append(self.components[name]._component_stop())
   File "deluge/component.py", line 158, in _component_stop
     d = maybeDeferred(self.stop)
 --- <exception caught here> ---
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
 134, in maybeDeferred
     result = f(*args, **kw)
   File "deluge/core/torrentmanager.py", line 247, in stop
     self.torrents[key].prev_status_cleanup_loop.stop()
   File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line
 171, in stop
     assert self.running, ("Tried to stop a LoopingCall that was "
 exceptions.AssertionError: Tried to stop a LoopingCall that was not
 running.

 Unhandled Error
 Traceback (most recent call last):
   File "deluge/ui/gtkui/gtkui.py", line 449, in __on_disconnect
     component.stop()
   File "deluge/component.py", line 338, in stop
     d =
 self.stop(self.dependents[name]).addCallback(on_dependents_stopped, name)
   File "deluge/component.py", line 342, in stop
     deferreds.append(self.components[name]._component_stop())
   File "deluge/component.py", line 158, in _component_stop
     d = maybeDeferred(self.stop)
 --- <exception caught here> ---
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
 134, in maybeDeferred
     result = f(*args, **kw)
   File "deluge/core/torrentmanager.py", line 247, in stop
     self.torrents[key].prev_status_cleanup_loop.stop()
   File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line
 171, in stop
     assert self.running, ("Tried to stop a LoopingCall that was "
 exceptions.AssertionError: Tried to stop a LoopingCall that was not
 running.
 14:23:38.316 [ERROR   ][deluge.component                   :152 ] [Failure
 instance: Traceback: <type 'exceptions.AssertionError'>: Tried to stop a
 LoopingCall that was not running.
 deluge/ui/gtkui/gtkui.py:449:__on_disconnect
 deluge/component.py:338:stop
 deluge/component.py:342:stop
 deluge/component.py:158:_component_stop
 --- <exception caught here> ---
 /usr/lib/python2.7/dist-
 packages/twisted/internet/defer.py:134:maybeDeferred
 deluge/core/torrentmanager.py:247:stop
 /usr/lib/python2.7/dist-packages/twisted/internet/task.py:171:stop
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2328>
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