File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/java/se/uu/it/dtlsfuzzer/components/sul/core Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -150,9 +150,10 @@ public void run() {
150
150
});
151
151
chWaiter .start ();
152
152
receivedClientHello = false ;
153
- if (((TlsSulClientConfig ) sulConfig ).getClientWait () > 0 ) {
153
+ long clientWait = ((TlsSulClientConfig ) sulConfig ).getClientWait ();
154
+ if (clientWait > 0 ) {
154
155
try {
155
- Thread .sleep ((( TlsSulClientConfig ) sulConfig ). getClientWait () );
156
+ Thread .sleep (clientWait );
156
157
} catch (InterruptedException e ) {
157
158
LOGGER .error ("Could not sleep thread" );
158
159
}
@@ -188,8 +189,9 @@ public void post() {
188
189
LOGGER .error ("Transport handler is null" );
189
190
} else {
190
191
transportHandler .closeConnection ();
191
- if (sulConfig .getStartWait () > 0 ) {
192
- Thread .sleep (sulConfig .getStartWait ());
192
+ long startWait = sulConfig .getStartWait ();
193
+ if (startWait > 0 ) {
194
+ Thread .sleep (startWait );
193
195
}
194
196
}
195
197
} catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments