Skip to content

Commit 73524ab

Browse files
committed
fixed xcode project
1 parent ceb598a commit 73524ab

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

LaunchDarkly.xcodeproj/project.pbxproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
3D3AB9462A4F16FE003AECF1 /* ReportingConsts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D3AB9422A4F16FE003AECF1 /* ReportingConsts.swift */; };
3939
3D3AB9482A570F3A003AECF1 /* ModifierSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D3AB9472A570F3A003AECF1 /* ModifierSpec.swift */; };
4040
3D9A12582A73236800698B8D /* UtilSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D9A12572A73236800698B8D /* UtilSpec.swift */; };
41+
50EE85C22EA0487F007CC662 /* TimeoutExecutor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50EE85C12EA0487F007CC662 /* TimeoutExecutor.swift */; };
42+
50EE85C32EA0487F007CC662 /* TimeoutExecutor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50EE85C12EA0487F007CC662 /* TimeoutExecutor.swift */; };
43+
50EE85C42EA0487F007CC662 /* TimeoutExecutor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50EE85C12EA0487F007CC662 /* TimeoutExecutor.swift */; };
44+
50EE85C52EA0487F007CC662 /* TimeoutExecutor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50EE85C12EA0487F007CC662 /* TimeoutExecutor.swift */; };
4145
830BF933202D188E006DF9B1 /* HTTPURLRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 830BF932202D188E006DF9B1 /* HTTPURLRequest.swift */; };
4246
830DB3AC22380A3E00D65D25 /* HTTPHeadersSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 830DB3AB22380A3E00D65D25 /* HTTPHeadersSpec.swift */; };
4347
830DB3AE2239B54900D65D25 /* URLResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 830DB3AD2239B54900D65D25 /* URLResponse.swift */; };
@@ -429,6 +433,7 @@
429433
3D3AB9422A4F16FE003AECF1 /* ReportingConsts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportingConsts.swift; sourceTree = "<group>"; };
430434
3D3AB9472A570F3A003AECF1 /* ModifierSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModifierSpec.swift; sourceTree = "<group>"; };
431435
3D9A12572A73236800698B8D /* UtilSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UtilSpec.swift; sourceTree = "<group>"; };
436+
50EE85C12EA0487F007CC662 /* TimeoutExecutor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeoutExecutor.swift; sourceTree = "<group>"; };
432437
830BF932202D188E006DF9B1 /* HTTPURLRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTPURLRequest.swift; sourceTree = "<group>"; };
433438
830DB3AB22380A3E00D65D25 /* HTTPHeadersSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTPHeadersSpec.swift; sourceTree = "<group>"; };
434439
830DB3AD2239B54900D65D25 /* URLResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLResponse.swift; sourceTree = "<group>"; };
@@ -887,6 +892,7 @@
887892
83FEF8D91F2666BF001CF12C /* ServiceObjects */ = {
888893
isa = PBXGroup;
889894
children = (
895+
50EE85C12EA0487F007CC662 /* TimeoutExecutor.swift */,
890896
A3A8BCD12B7EAA89009A77E4 /* SheddingQueue.swift */,
891897
A358D6CF2A4DD45000270C60 /* EnvironmentReporting */,
892898
8354AC742243168800CDE602 /* Cache */,
@@ -1355,6 +1361,7 @@
13551361
3D3AB9462A4F16FE003AECF1 /* ReportingConsts.swift in Sources */,
13561362
831188522113ADF700D77CB5 /* KeyedValueCache.swift in Sources */,
13571363
831188582113AE0F00D77CB5 /* EventReporter.swift in Sources */,
1364+
50EE85C42EA0487F007CC662 /* TimeoutExecutor.swift in Sources */,
13581365
A358D6F52A4DEB4C00270C60 /* EnvironmentReporterBuilder.swift in Sources */,
13591366
8311885D2113AE2500D77CB5 /* DarklyService.swift in Sources */,
13601367
831188692113AE5900D77CB5 /* ObjcLDConfig.swift in Sources */,
@@ -1481,6 +1488,7 @@
14811488
A3A8BCD42B7EAA89009A77E4 /* SheddingQueue.swift in Sources */,
14821489
B4C9D43A2489E20A004A9B03 /* DiagnosticReporter.swift in Sources */,
14831490
831EF36A20655E730001C643 /* ObjcLDChangedFlag.swift in Sources */,
1491+
50EE85C22EA0487F007CC662 /* TimeoutExecutor.swift in Sources */,
14841492
);
14851493
runOnlyForDeploymentPostprocessing = 0;
14861494
};
@@ -1508,6 +1516,7 @@
15081516
3D3AB9432A4F16FE003AECF1 /* ReportingConsts.swift in Sources */,
15091517
A31088172837DC0400184942 /* Reference.swift in Sources */,
15101518
8354EFE21F26380700C05156 /* Event.swift in Sources */,
1519+
50EE85C52EA0487F007CC662 /* TimeoutExecutor.swift in Sources */,
15111520
A358D6F22A4DEB4C00270C60 /* EnvironmentReporterBuilder.swift in Sources */,
15121521
C408884923033B7500420721 /* ConnectionInformation.swift in Sources */,
15131522
831D8B721F71D3E700ED65E8 /* DarklyService.swift in Sources */,
@@ -1639,6 +1648,7 @@
16391648
3D3AB9442A4F16FE003AECF1 /* ReportingConsts.swift in Sources */,
16401649
83D9EC7E2062DEAB004D7FA6 /* FlagChangeObserver.swift in Sources */,
16411650
83D9EC7F2062DEAB004D7FA6 /* FlagsUnchangedObserver.swift in Sources */,
1651+
50EE85C32EA0487F007CC662 /* TimeoutExecutor.swift in Sources */,
16421652
A358D6F32A4DEB4C00270C60 /* EnvironmentReporterBuilder.swift in Sources */,
16431653
83D9EC802062DEAB004D7FA6 /* Event.swift in Sources */,
16441654
83D9EC822062DEAB004D7FA6 /* ClientServiceFactory.swift in Sources */,

LaunchDarkly/LaunchDarkly/ServiceObjects/TimeoutExecutor.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ final class TimeoutExecutor {
5252
shouldCall = true
5353
}
5454
}
55-
guard shouldCall else { return }
56-
queue.async { completion(value) }
55+
56+
if shouldCall {
57+
queue.async { completion(value) }
58+
}
5759
}
5860

5961
// Timeout fallback
@@ -65,8 +67,10 @@ final class TimeoutExecutor {
6567
shouldCall = true
6668
}
6769
}
68-
guard shouldCall else { return }
69-
completion(timeoutValue())
70+
71+
if shouldCall {
72+
completion(timeoutValue())
73+
}
7074
}
7175
}
7276
}

0 commit comments

Comments
 (0)