mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
_OpenClient() should return zero on connection failure, not error
This commit is contained in:
parent
445408d95b
commit
11a5b8be8e
|
@ -28952,7 +28952,7 @@ int32 connection_new(int32 method, qbs *info_in, int32 value) {
|
|||
if (err) {
|
||||
list_remove(special_handles, my_handle);
|
||||
// There's no good way to report the HTTP error here
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
special_handle_struct *my_handle_struct;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
Error: 5 , Line: 6
|
||||
0
|
||||
-2
|
||||
404
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
Error: 5 , Line: 6
|
||||
0
|
||||
Error: 5 , Line: 10
|
||||
0
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
Error: 5 , Line: 4
|
||||
0
|
||||
|
|
Loading…
Reference in a new issue