Skip to content

Commit 829d542

Browse files
committed
moved pushing status upward to fix tests
1 parent 30369f7 commit 829d542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/splitclient-rb/sse/event_source/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def close(status = nil)
4343
end
4444
@config.logger.debug("Closing SSEClient socket")
4545

46+
push_status(status)
4647
@connected.make_false
4748
@socket.sync_close = true if @socket.is_a? OpenSSL::SSL::SSLSocket
4849
@socket.close
4950
@config.logger.debug("SSEClient socket state #{@socket.state}") if @socket.is_a? OpenSSL::SSL::SSLSocket
50-
push_status(status)
5151
rescue StandardError => e
5252
@config.logger.error("SSEClient close Error: #{e.inspect}")
5353
end

0 commit comments

Comments
 (0)