Client throws cryptic error message if website is unavailable (#65)
(API) Increased timeouts again. Changed communication with steam API in hope to be more reliable in getting a response
This commit is contained in:
parent
9dc944acc2
commit
d69dc36a98
|
@ -14,7 +14,7 @@
|
|||
|
||||
;#AutoIt3Wrapper_Res_ProductVersion=x.x.x.x ; Broken, use #AutoIt3Wrapper_Res_Field=ProductVersion|x.x.x as workarround.
|
||||
#AutoIt3Wrapper_Res_Field=ProductVersion|Freeware
|
||||
#AutoIt3Wrapper_Res_Fileversion=1.1.2.91
|
||||
#AutoIt3Wrapper_Res_Fileversion=1.1.2.92
|
||||
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=N ;(Y/N/P) AutoIncrement FileVersion After Aut2EXE is finished. default=N. P=Prompt, Will ask at Compilation time if you want to increase the versionnumber
|
||||
#AutoIt3Wrapper_Res_Language=1033 ;Resource Language code . german = 1031, english (U.S.) = 1033. default 2057=English (United Kingdom). For a List see http://technet.microsoft.com/en-us/library/dd346950.aspx
|
||||
|
||||
|
|
|
@ -9,15 +9,6 @@ Func lookupSteamId($input)
|
|||
$oXML.SetRequestHeader("User-Agent", $agent)
|
||||
$oXML.Send()
|
||||
$oXML = $oXML.ResponseText
|
||||
If @error <> 0 Then
|
||||
_printError("noapi")
|
||||
Return "ERROR_HANDELED"
|
||||
EndIf
|
||||
|
||||
If $oXML = "" Then
|
||||
_printError("noapi")
|
||||
Return "ERROR_HANDELED"
|
||||
EndIf
|
||||
|
||||
$oXML = _XMLLoadXML($oXML)
|
||||
If @error <> 0 Then
|
||||
|
@ -157,7 +148,7 @@ Func _printError($id = false)
|
|||
Case "update"
|
||||
MsgBox(48, "Update available", "New Update available." & @CRLF & @CRLF & "Visit smacbans.com for more Info and Download.")
|
||||
Case Else
|
||||
MsgBox(16, "ERROR", "Unknown Error occured")
|
||||
Return
|
||||
EndSwitch
|
||||
EndFunc
|
||||
|
||||
|
|
Reference in New Issue