Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit eef3138

Browse files
committed
Don't assign timeout before calling super.
1 parent 6efb837 commit eef3138

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/async/io/ssl_socket.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,15 @@ def initialize(socket, context)
6868
super
6969
else
7070
io = self.class.wrapped_klass.new(socket.to_io, context)
71+
super(io, socket.reactor)
7172

7273
# We detach the socket from the reactor, otherwise it's possible to add the file descriptor to the selector twice, which is bad.
7374
socket.reactor = nil
7475

7576
# This ensures that when the internal IO is closed, it also closes the internal socket:
7677
io.sync_close = true
7778

78-
# Copy the timeout:
7979
@timeout = socket.timeout
80-
81-
super(io, socket.reactor)
8280
end
8381
end
8482

0 commit comments

Comments
 (0)