mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-01-19 07:43:32 +08:00
remove license file if fail
This commit is contained in:
parent
411e963187
commit
f2c4ab136c
491
Cargo.lock
generated
491
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
Subproject commit 1b57a4f786fc1544d7ecbbc1d8c52fb7f63d002c
|
||||
Subproject commit f1094d3d1db5feb75f96fc1c0bb68c1251946761
|
@ -116,6 +116,7 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
|
||||
if resp.reason_phrase == "OK" {
|
||||
let p: Post = serde_json::from_str(&resp.as_str()?)?;
|
||||
if !p.status.is_empty() {
|
||||
std::fs::remove_file(LICENSE_FILE).ok();
|
||||
bail!("{}", p.status);
|
||||
}
|
||||
if p.nonce.is_empty() {
|
||||
|
Loading…
Reference in New Issue
Block a user