From 04ced2e9757e03049302ac6982edc997e514a659 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sun, 2 Oct 2016 02:50:17 -0400 Subject: [PATCH] Fix import issues in DaemonServer.py --- lbrynet/lbrynet_daemon/DaemonServer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/DaemonServer.py b/lbrynet/lbrynet_daemon/DaemonServer.py index 0d62ba47d..c02ff0cc5 100644 --- a/lbrynet/lbrynet_daemon/DaemonServer.py +++ b/lbrynet/lbrynet_daemon/DaemonServer.py @@ -11,11 +11,12 @@ import cgi from appdirs import user_data_dir from twisted.web import server, static, resource -from twisted.internet import abstract, defer, interfaces, error, reactor, task, threads +from twisted.internet import abstract, defer, interfaces, error, reactor, task from zope.interface import implementer from lbrynet.lbrynet_daemon.Daemon import Daemon +from lbrynet.lbryfilemanager.EncryptedFileDownloader import ManagedEncryptedFileDownloader from lbrynet.conf import API_ADDRESS, UI_ADDRESS, DEFAULT_UI_BRANCH, LOG_FILE_NAME @@ -279,7 +280,7 @@ class EncryptedFileStreamer(object): if not self._running: return - if stream_status != ManagedLBRYFileDownloader.STATUS_FINISHED: + if stream_status != ManagedEncryptedFileDownloader.STATUS_FINISHED: self._deferred.addCallback(lambda _: task.deferLater(reactor, self.new_data_check_interval, self._check_for_new_data)) else: self.stopProducing()