Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1073. Correct nullability for lastDisconnect #1076

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

rnapier
Copy link
Contributor

@rnapier rnapier commented Jul 9, 2018

The makes all uses of lastDisconnect within XMPPStreamManagementStorage nullable. This is how lastDisconnect is treated by XMPPStreamManagementMemoryStorage, and there are cases where lastDisconnect is nil when passed to the delegate (if a disconnect has never occurred). This causes a crash in Swift when the nil is unwrapped.

@chrisballinger chrisballinger merged commit d34571e into robbiehanson:master Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants