Make a copy of the default options to prevent torrents from sharing

references
This commit is contained in:
Andrew Resch 2008-09-01 01:55:13 +00:00
parent 89ed0d5d41
commit b6d05c01e8

View File

@ -93,7 +93,7 @@ class Torrent:
self.total_uploaded = 0 self.total_uploaded = 0
# Set the default options # Set the default options
self.options = OPTIONS self.options = OPTIONS.copy()
self.options.update(options) self.options.update(options)
# We need to keep track if the torrent is finished in the state to prevent # We need to keep track if the torrent is finished in the state to prevent