mirror of
https://github.com/vidarh/ruby-x11
synced 2024-11-16 07:48:12 +01:00
More resilient auth
This commit is contained in:
parent
a5ca257272
commit
2c1bb45781
1 changed files with 6 additions and 1 deletions
|
@ -529,7 +529,12 @@ module X11
|
|||
auth = Auth.new
|
||||
auth_info = auth.get_by_hostname(host||"localhost", family, display_id)
|
||||
|
||||
auth_name, auth_data = auth_info.auth_name, auth_info.auth_data
|
||||
if auth_info
|
||||
auth_name, auth_data = auth_info.auth_name, auth_info.auth_data
|
||||
else
|
||||
auth_name = ""
|
||||
auth_data = ""
|
||||
end
|
||||
p [auth_name, auth_data]
|
||||
|
||||
handshake = Form::ClientHandshake.new(
|
||||
|
|
Loading…
Reference in a new issue