Using #327
Initializing a new ButtplugWSClient causes _owningDispatcher to be null, which in turn leads to Messages not being sent, and ultimately to an Exception when a Message is Recieved, cause it's not getting checked for being null there.
Example Code:
var _bpClient = new ButtplugWSClient("TestClient");
_bpClient.Connect(new Uri("ws://localhost:12345"));
"Faulty" Line 100: _owningDispatcher = SynchronizationContext.Current;
SynchronizationContext.Current is null.
Tried this in the static Main Function and a new Task, same Result.
Using #327
Initializing a new ButtplugWSClient causes _owningDispatcher to be null, which in turn leads to Messages not being sent, and ultimately to an Exception when a Message is Recieved, cause it's not getting checked for being null there.
Example Code:
var _bpClient = new ButtplugWSClient("TestClient");_bpClient.Connect(new Uri("ws://localhost:12345"));"Faulty" Line 100:
_owningDispatcher = SynchronizationContext.Current;SynchronizationContext.Current is null.
Tried this in the static Main Function and a new Task, same Result.