Commit 9719496b authored by Akinwale Ariwodola's avatar Akinwale Ariwodola
Browse files

stream_manager changed to file_manager

parent 74d9b8f1
Pipeline #2155 passed with stages
in 26 minutes and 2 seconds
......@@ -76,7 +76,7 @@ public final class LbrynetService extends PythonService {
private ScheduledExecutorService taskExecutor;
private ScheduledFuture taskExecutorHandle = null;
private boolean streamManagerReady = false;
private boolean fileManagerReady = false;
@Override
public boolean canDisplayNotification() {
......@@ -208,7 +208,7 @@ public final class LbrynetService extends PythonService {
private void pollFileList() {
try {
if (!streamManagerReady) {
if (!fileManagerReady) {
String statusResponse = Utils.sdkCall("status");
if (statusResponse != null) {
JSONObject status = new JSONObject(statusResponse);
......@@ -219,13 +219,13 @@ public final class LbrynetService extends PythonService {
JSONObject result = status.getJSONObject("result");
if (result.has("startup_status")) {
JSONObject startupStatus = result.getJSONObject("startup_status");
streamManagerReady = startupStatus.has("stream_manager") && startupStatus.getBoolean("stream_manager");
fileManagerReady = startupStatus.has("file_manager") && startupStatus.getBoolean("file_manager");
}
}
}
}
if (streamManagerReady) {
if (fileManagerReady) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("page_size", 100);
params.put("reverse", true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment