Skip to content

Commit

Permalink
Merge pull request #25 from LuckyNoS7evin/master
Browse files Browse the repository at this point in the history
Removed item that is no longer needed
  • Loading branch information
LuckyNoS7evin authored Apr 6, 2018
2 parents 01cf529 + 7c72f6e commit 7ef7a1f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions TwitchLib.Unity/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,7 @@ public class Client : TwitchClient, ITwitchClient
{
private readonly GameObject _threadDispatcher;
public new bool OverrideBeingHostedCheck { get; set; }

public new ConnectionCredentials ConnectionCredentials
{
get => base.ConnectionCredentials;
set
{
if (IsConnected)
ThreadDispatcher.Instance().Enqueue(() => throw new IllegalAssignmentException("While the client is connected, you are unable to change the connection credentials. Please disconnect first and then change them."));
base.ConnectionCredentials = value;
TwitchUsername = value.TwitchUsername;
}
}


#region Events
/// <summary>
/// Fires whenever a log write happens.
Expand Down

0 comments on commit 7ef7a1f

Please sign in to comment.