fix: skip rustdesk sync before registration
This commit is contained in:
parent
e0bb6bb80f
commit
20f80083f2
1 changed files with 4 additions and 0 deletions
|
|
@ -737,6 +737,10 @@ const resolvedAppUrl = useMemo(() => {
|
||||||
const syncRemoteAccessNow = useCallback(
|
const syncRemoteAccessNow = useCallback(
|
||||||
async (info: RustdeskInfo, allowRetry = true) => {
|
async (info: RustdeskInfo, allowRetry = true) => {
|
||||||
if (!store) return
|
if (!store) return
|
||||||
|
if (!config?.machineId) {
|
||||||
|
logDesktop("remoteAccess:sync:skipped", { reason: "unregistered" })
|
||||||
|
return
|
||||||
|
}
|
||||||
const payload = buildRemoteAccessPayload(info)
|
const payload = buildRemoteAccessPayload(info)
|
||||||
if (!payload) return
|
if (!payload) return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue