We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e331afe commit b1a5ef9Copy full SHA for b1a5ef9
Source/BugsnagSessionTracker.m
@@ -116,11 +116,15 @@ - (void)registerExistingSession:(NSString *)sessionId
116
user:(BugsnagUser *)user
117
handledCount:(NSUInteger)handledCount
118
unhandledCount:(NSUInteger)unhandledCount {
119
- self.currentSession = [[BugsnagSession alloc] initWithId:sessionId
120
- startDate:startedAt
121
- user:user
122
- handledCount:handledCount
123
- unhandledCount:unhandledCount];
+ if (sessionId != nil) {
+ self.currentSession = nil;
+ } else {
+ self.currentSession = [[BugsnagSession alloc] initWithId:sessionId
+ startDate:startedAt
124
+ user:user
125
+ handledCount:handledCount
126
+ unhandledCount:unhandledCount];
127
+ }
128
if (self.callback) {
129
self.callback(self.currentSession);
130
}
0 commit comments