mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Use better way to initialize task manager listener and timers
This commit is contained in:
@@ -89,6 +89,7 @@ class AuthInfo {
|
||||
"Logged in as ${u.username} (${u.id}). isAdmin: ${u.isAdmin}. permissions: ${u.permissions}");
|
||||
await checkSessionInfo();
|
||||
if (canManageTasks == true) {
|
||||
if (!tasks.inited) tasks.init();
|
||||
await tasks.connect();
|
||||
}
|
||||
} else if (re.status == 401 || re.status == 1 || re.status == 404) {
|
||||
|
||||
Reference in New Issue
Block a user