mirror of
https://github.com/CDrummond/bliss-analyser.git
synced 2026-10-22 22:32:08 +03:00
Cleanup upload module
Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
1 parent
625248fbc6
commit
f6edb983d3
1 file changed
+4
-6
+4
-6
@@ -21,11 +21,9 @@ pub fn stop_mixer(lms: &String) {
|
|||||||
"{\"id\":1, \"method\":\"slim.request\",\"params\":[\"\",[\"blissmixer\",\"stop\"]]}";
|
"{\"id\":1, \"method\":\"slim.request\",\"params\":[\"\",[\"blissmixer\",\"stop\"]]}";
|
||||||
|
|
||||||
log::info!("Asking plugin to stop mixer");
|
log::info!("Asking plugin to stop mixer");
|
||||||
match ureq::post(&format!("http://{}:9000/jsonrpc.js", lms)).send_string(&stop_req) {
|
let req = ureq::post(&format!("http://{}:9000/jsonrpc.js", lms)).send_string(&stop_req);
|
||||||
Ok(_) => {}
|
if let Err(e) = req {
|
||||||
Err(e) => {
|
log::error!("Failed to ask plugin to stop mixer. {}", e);
|
||||||
log::error!("Failed to ask plugin to stop mixer. {}", e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +68,7 @@ pub fn upload_db(db_path: &String, lms: &String) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if port <= 0 {
|
if port == 0 {
|
||||||
fail("Invalid port");
|
fail("Invalid port");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user