Skip to content

Commit f7870d7

Browse files
author
wuyize
committed
change the check vesion code
1 parent e44f593 commit f7870d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/page/version/version.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class _VersionState extends State<Version> with SingleTickerProviderStateMixin {
3636
}
3737
_ctXlGx() async {
3838
checkVersion();
39-
_ctXl = Timer.periodic(new Duration(milliseconds: 3000), (timer) {
39+
_ctXl = Timer.periodic(new Duration(milliseconds: 6000), (timer) {
4040
checkVersion();
4141
});
4242
}
@@ -190,6 +190,7 @@ class _VersionState extends State<Version> with SingleTickerProviderStateMixin {
190190
// print(version);
191191
if (Config().version < result) {
192192
choiceUpdate(context);
193+
_ctXl.cancel();
193194
} else {
194195
if (_a_status)
195196
Navigator.of(context).pushAndRemoveUntil(

0 commit comments

Comments
 (0)