mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-02-16 02:20:41 +00:00
remove license file if fail
This commit is contained in:
491
Cargo.lock
generated
491
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
Submodule libs/hbb_common updated: 1b57a4f786...f1094d3d1d
@@ -116,6 +116,7 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
|
|||||||
if resp.reason_phrase == "OK" {
|
if resp.reason_phrase == "OK" {
|
||||||
let p: Post = serde_json::from_str(&resp.as_str()?)?;
|
let p: Post = serde_json::from_str(&resp.as_str()?)?;
|
||||||
if !p.status.is_empty() {
|
if !p.status.is_empty() {
|
||||||
|
std::fs::remove_file(LICENSE_FILE).ok();
|
||||||
bail!("{}", p.status);
|
bail!("{}", p.status);
|
||||||
}
|
}
|
||||||
if p.nonce.is_empty() {
|
if p.nonce.is_empty() {
|
||||||
|
|||||||
Reference in New Issue
Block a user