Skip to content

Reapplying status hotfix

Mateusz Brawański requested to merge github/fork/Neuheit/ReapplyActivity into master

Created by: Neuheit

Summary

Fixes a NRE being thrown when trying to reconnect without a status/activity.

Details

In my original PR, I forgot to handle when a user connects without a custom activity and presence. If this occurs, it will throw a NRE when checking here, if the status is null, and not reconnect the client. This PR should correct that.

Changes proposed

  • Added a conditional which checks if this._status is null, and if so just reconnects without the status arguments.

Merge request reports

Loading