mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: SystemType(#184) & opt.: ios home widget
This commit is contained in:
@@ -329,10 +329,10 @@ class ServerProvider extends ChangeNotifier {
|
||||
}
|
||||
|
||||
final systemType = SystemType.parse(segments[0]);
|
||||
if (systemType == null || !systemType.isSegmentsLenMatch(segments.length)) {
|
||||
if (!systemType.isSegmentsLenMatch(segments.length)) {
|
||||
_limiter.inc(sid);
|
||||
s.status.failedInfo =
|
||||
'Segments not match: expect ${systemType?.segmentsLen}, got ${segments.length}';
|
||||
'Segments not match: expect ${systemType.segmentsLen}, got ${segments.length}';
|
||||
_setServerState(s, ServerState.failed);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user