mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Ensure int-ness for max-connections and upload-slots of torrents.
This commit is contained in:
parent
ae0652227b
commit
a39b8baa72
1 changed files with 4 additions and 4 deletions
|
@ -110,12 +110,12 @@ class Torrent:
|
|||
self.tracker_status = status
|
||||
|
||||
def set_max_connections(self, max_connections):
|
||||
self.max_connections = max_connections
|
||||
self.handle.set_max_connections(max_connections)
|
||||
self.max_connections = int(max_connections)
|
||||
self.handle.set_max_connections(self.max_connections)
|
||||
|
||||
def set_max_upload_slots(self, max_slots):
|
||||
self.max_upload_slots = max_slots
|
||||
self.handle.set_max_uploads(max_slots)
|
||||
self.max_upload_slots = int(max_slots)
|
||||
self.handle.set_max_uploads(self.max_upload_slots)
|
||||
|
||||
def set_max_upload_speed(self, m_up_speed):
|
||||
self.max_upload_speed = m_up_speed
|
||||
|
|
Loading…
Add table
Reference in a new issue