diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Clients/AuthClient.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Clients/AuthClient.cs | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/OpenSim/Framework/Communications/Clients/AuthClient.cs b/OpenSim/Framework/Communications/Clients/AuthClient.cs index 95af7e1..ba5cf66 100644 --- a/OpenSim/Framework/Communications/Clients/AuthClient.cs +++ b/OpenSim/Framework/Communications/Clients/AuthClient.cs | |||
@@ -82,7 +82,7 @@ namespace OpenSim.Framework.Communications.Clients | |||
82 | XmlRpcResponse reply; | 82 | XmlRpcResponse reply; |
83 | try | 83 | try |
84 | { | 84 | { |
85 | reply = request.Send(authurl, 6000); | 85 | reply = request.Send(authurl, 10000); |
86 | } | 86 | } |
87 | catch (Exception e) | 87 | catch (Exception e) |
88 | { | 88 | { |
@@ -90,17 +90,25 @@ namespace OpenSim.Framework.Communications.Clients | |||
90 | return false; | 90 | return false; |
91 | } | 91 | } |
92 | 92 | ||
93 | if (!reply.IsFault) | 93 | if (reply != null) |
94 | { | 94 | { |
95 | bool success = false; | 95 | if (!reply.IsFault) |
96 | if (reply.Value != null) | 96 | { |
97 | success = (bool)reply.Value; | 97 | bool success = false; |
98 | if (reply.Value != null) | ||
99 | success = (bool)reply.Value; | ||
98 | 100 | ||
99 | return success; | 101 | return success; |
102 | } | ||
103 | else | ||
104 | { | ||
105 | System.Console.WriteLine("[HGrid]: XmlRpc request to verify key failed with message {0}" + reply.FaultString + ", code " + reply.FaultCode); | ||
106 | return false; | ||
107 | } | ||
100 | } | 108 | } |
101 | else | 109 | else |
102 | { | 110 | { |
103 | System.Console.WriteLine("[HGrid]: XmlRpc request to verify key failed with message {0}" + reply.FaultString + ", code " + reply.FaultCode); | 111 | System.Console.WriteLine("[HGrid]: XmlRpc request to verify key returned null reply"); |
104 | return false; | 112 | return false; |
105 | } | 113 | } |
106 | } | 114 | } |