Skip to content

Commit 0db4012

Browse files
committed
Fixed an issue where process queue and submit session end were happening twice.
1 parent 2f95b14 commit 0db4012

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/Platforms/Exceptionless.Windows/ExceptionlessWindowsExtensions.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ public static void Register(this ExceptionlessClient client, bool showDialog = t
2020
client.Configuration.AddPlugin<SetEnvironmentUserPlugin>();
2121
client.Startup();
2222

23-
if (client.Configuration.SessionsEnabled)
24-
client.SubmitSessionStart();
25-
2623
client.RegisterApplicationThreadExceptionHandler();
2724

2825
if (!showDialog)
@@ -44,11 +41,6 @@ public static void Unregister(this ExceptionlessClient client) {
4441
client.UnregisterApplicationThreadExceptionHandler();
4542

4643
client.SubmittingEvent -= OnSubmittingEvent;
47-
48-
client.ProcessQueue();
49-
50-
if (client.Configuration.SessionsEnabled)
51-
client.SubmitSessionEnd();
5244
}
5345

5446
private static void OnSubmittingEvent(object sender, EventSubmittingEventArgs e) {

src/Platforms/Exceptionless.Wpf/ExceptionlessWpfExtensions.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ public static void Register(this ExceptionlessClient client, bool showDialog = t
2020

2121
client.Configuration.AddPlugin<SetEnvironmentUserPlugin>();
2222
client.Startup();
23-
24-
if (client.Configuration.SessionsEnabled)
25-
client.SubmitSessionStart();
26-
23+
2724
client.RegisterApplicationThreadExceptionHandler();
2825
client.RegisterApplicationDispatcherUnhandledExceptionHandler();
2926

@@ -47,11 +44,6 @@ public static void Unregister(this ExceptionlessClient client) {
4744
client.UnregisterApplicationDispatcherUnhandledExceptionHandler();
4845

4946
client.SubmittingEvent -= OnSubmittingEvent;
50-
51-
client.ProcessQueue();
52-
53-
if (client.Configuration.SessionsEnabled)
54-
client.SubmitSessionEnd();
5547
}
5648

5749
private static void OnSubmittingEvent(object sender, EventSubmittingEventArgs e) {

0 commit comments

Comments
 (0)