We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c1e62 commit ac7c579Copy full SHA for ac7c579
src/Nullinside.Api.Common/Twitch/TwitchClientProxy.cs
@@ -117,8 +117,11 @@ public string? TwitchOAuthToken {
117
// If we have a client, try to connect.
118
if (null != _client) {
119
_client.Disconnect();
120
- _client.SetConnectionCredentials(new ConnectionCredentials(TwitchUsername, value));
121
- Connect();
+
+ if (null != value) {
122
+ _client.SetConnectionCredentials(new ConnectionCredentials(TwitchUsername, value));
123
+ Connect();
124
+ }
125
}
126
127
0 commit comments