File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments