TorrentStorageMovedEvent is never emited

General support for problems installing or using Deluge
Post Reply
laharah
Member
Member
Posts: 26
Joined: Wed Jan 08, 2014 2:41 am

TorrentStorageMovedEvent is never emited

Post by laharah »

Hi, I'm writing a new plugin and I've come across an issue.

As of 1.3.11, The TorrentStorageMovedEvent is never emited. I'm using it to verify that a move has finished before resuming a torrent, but TorrentManager.on_alert_storage_moved never emits the event, so my plugin has no idea when the move is finished.

Is the lack of emit in the code an oversight, or working as intended? Is there a better way I should be ensuring that the move is completed?


-Laharah
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: TorrentStorageMovedEvent is never emited

Post by Cas »

That event is not in 1.3 code.
laharah
Member
Member
Posts: 26
Joined: Wed Jan 08, 2014 2:41 am

Re: TorrentStorageMovedEvent is never emited

Post by laharah »

Cas wrote:That event is not in 1.3 code.
Looking through events.py I see you are right. I was confused because the event is in the code documentation.

It looks like Torrent.move_storage is synchronous now. Is that the case? Is it safe to use that way, or should I register directly into the AlertManager?
Post Reply