Skip to content

Commit a32a2c1

Browse files
authored
Merge pull request #984 from gbirchmeier/978finally
(#978 fix) delete redundant lines in SocketInitiatorThreadStart
2 parents 0865b18 + 9bf804d commit a32a2c1

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

QuickFIXn/Transport/SocketInitiator.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ public static void SocketInitiatorThreadStart(object? socketInitiatorThread)
6060
t.Session.Next();
6161
while (t.Read()) {
6262
}
63-
64-
if (t.Initiator.IsStopped)
65-
t.Initiator.RemoveThread(t);
66-
t.Initiator.SetDisconnected(t.Session.SessionID);
6763
}
6864
catch (IOException ex) // Can be exception when connecting, during ssl authentication or when reading
6965
{
@@ -81,11 +77,9 @@ public static void SocketInitiatorThreadStart(object? socketInitiatorThread)
8177
{
8278
LogThreadStartConnectionFailed(t, ex);
8379
}
84-
finally
85-
{
86-
t.Initiator.RemoveThread(t);
87-
t.Initiator.SetDisconnected(t.Session.SessionID);
88-
}
80+
81+
t.Initiator.RemoveThread(t);
82+
t.Initiator.SetDisconnected(t.Session.SessionID);
8983
}
9084

9185
private static void LogThreadStartConnectionFailed(SocketInitiatorThread t, Exception e) {

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ What's New
6060
* #309 - fix: obey a SeqReset-GapFill even if it 'replaces' a message that was processed off
6161
queue in a ResendRequest series (gbirchmeier/oclancy)
6262
* #979 - improve DDTool: nullable enable, custom name, generate csproj if needed (gbirchmeier)
63+
* #978 - delete some redundant lines in SocketInitiatorThreadStart (gbirchmeier)
6364

6465
### v1.13.1
6566
* backport #951 to 1.13

0 commit comments

Comments
 (0)