Merge pull request #694 from lbryio/fix_session_close

fix typo which may not shut down blob_tracker
This commit is contained in:
Jack Robison 2017-06-16 14:07:05 -04:00 committed by GitHub
commit 2dab24ea14
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ at anytime.
### Fixed ### Fixed
* Fixed some log messages throwing exceptions * Fixed some log messages throwing exceptions
* * Fix shutdown of the blob tracker by Session
### Deprecated ### Deprecated
* *

View file

@ -171,7 +171,7 @@ class Session(object):
"""Stop all services""" """Stop all services"""
log.info('Shutting down %s', self) log.info('Shutting down %s', self)
ds = [] ds = []
if self.blob_manager is not None: if self.blob_tracker is not None:
ds.append(defer.maybeDeferred(self.blob_tracker.stop)) ds.append(defer.maybeDeferred(self.blob_tracker.stop))
if self.dht_node is not None: if self.dht_node is not None:
ds.append(defer.maybeDeferred(self.dht_node.stop)) ds.append(defer.maybeDeferred(self.dht_node.stop))