Skip to content

Invalid nested call #27

Description

@lufinkey

Randomly when trying to disconnect emitter (on the same thread where Connect was called), I get an exception "Invalid nested call". This is inconsistent and only happens about half the time.

Here is the stack trace:

InvalidOperationException: Invalid nested call.
Mono.Net.Security.MobileAuthenticatedStream.GetInvalidNestedCallException () (at <babece01671744c6913f4a167b091f9e>:0)
Mono.Net.Security.MobileAuthenticatedStream.StartOperation (Mono.Net.Security.MobileAuthenticatedStream+OperationType type, Mono.Net.Security.AsyncProtocolRequest asyncRequest, System.Threading.CancellationToken cancellationToken) (at <babece01671744c6913f4a167b091f9e>:0)
Rethrow as AggregateException: One or more errors occurred. (Invalid nested call.)
System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) (at <bfbc89a04b6b4dd49c3614d03fc31ce8>:0)
System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) (at <bfbc89a04b6b4dd49c3614d03fc31ce8>:0)
System.Threading.Tasks.Task.Wait () (at <bfbc89a04b6b4dd49c3614d03fc31ce8>:0)
Mono.Net.Security.MobileAuthenticatedStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) (at <babece01671744c6913f4a167b091f9e>:0)
System.Net.Security.SslStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) (at <babece01671744c6913f4a167b091f9e>:0)
Emitter.MqttNetworkChannel.Send (System.Byte[] buffer) (at Assets/Plugins/EmitterIO/Emitter/Emitter/Net/MqttNetworkChannel.cs:302)
Emitter.MqttClient.Send (System.Byte[] msgBytes) (at Assets/Plugins/EmitterIO/Emitter/Emitter/MqttClient.cs:769)
Rethrow as MqttCommunicationException
Emitter.MqttClient.Send (System.Byte[] msgBytes) (at Assets/Plugins/EmitterIO/Emitter/Emitter/MqttClient.cs:780)
Emitter.MqttClient.Send (Emitter.Messages.MqttMsgBase msg) (at Assets/Plugins/EmitterIO/Emitter/Emitter/MqttClient.cs:793)
Emitter.MqttClient.Disconnect () (at Assets/Plugins/EmitterIO/Emitter/Emitter/MqttClient.cs:530)
Emitter.Connection.Disconnect () (at Assets/Plugins/EmitterIO/Emitter/Emitter/Emitter.cs:236)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions