File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
src/main/java/ch/ethz/ssh2 Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -723,23 +723,6 @@ final class TimeoutState
723
723
tm .setSoTimeout (connectTimeout );
724
724
tm .setConnectionMonitors (connectionMonitors );
725
725
726
- /* Make sure that the runnable below will observe the new value of "tm"
727
- * and "state" (the runnable will be executed in a different thread, which
728
- * may be already running, that is why we need a memory barrier here).
729
- * See also the comment in Channel.java if you
730
- * are interested in the details.
731
- *
732
- * OKOK, this is paranoid since adding the runnable to the todo list
733
- * of the TimeoutService will ensure that all writes have been flushed
734
- * before the Runnable reads anything
735
- * (there is a synchronized block in TimeoutService.addTimeoutHandler).
736
- */
737
-
738
- synchronized (tm )
739
- {
740
- /* We could actually synchronize on anything. */
741
- }
742
-
743
726
try
744
727
{
745
728
TimeoutToken token = null ;
You can’t perform that action at this time.
0 commit comments