siegesmund / SwiftDDP

A Meteor client, written in Swift
MIT License
145 stars 60 forks source link

Remove force-unwrap of self.user() #90

Closed mjgaylord closed 7 years ago

mjgaylord commented 7 years ago

Duplicate calls that happen in quick succession of func logout(:) result in a crash because self.user()! is force-unwrapped. Checking for existence of the user object seems to prevent the crash.

siegesmund commented 7 years ago

I agree. Merged.