Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

Crash when the connection die #1

Closed
chuanhaisoft opened this issue Apr 23, 2015 · 4 comments
Closed

Crash when the connection die #1

chuanhaisoft opened this issue Apr 23, 2015 · 4 comments
Assignees

Comments

@chuanhaisoft
Copy link

  1.  var request = new AsyncHttpRequest("http://www.00000.com/123.php",
                            function(response:AsyncHttpResponse):Void {
                                 if (response.isOK) {
                                     trace(response.content);
                                     trace('DONE (HTTP STATUS ${response.status})');
                                 } else {
                                     trace('ERROR (HTTP STATUS ${response.status})');
                                 }
                            }  
                       );
     request.send();
    

123.php:

After 10 seconds
Disconnect the phone network
then app crashes

@yupswing
Copy link
Owner

Yes I can reproduce the bug also in neko.
It is an exception on the http request thread that is not handled and it stops the execution of the whole app.

I am working on it.
Thanks for the feedback

@yupswing yupswing added the bug label Apr 23, 2015
@yupswing yupswing self-assigned this Apr 23, 2015
yupswing pushed a commit that referenced this issue Apr 23, 2015
@yupswing
Copy link
Owner

Fixed in 0.3.1

@yupswing yupswing reopened this Apr 23, 2015
@yupswing
Copy link
Owner

Can you confirm the issue is fixed for you?
I've released the update on haxelib

@yupswing yupswing changed the title app crashes in android Crash when the connection die Apr 23, 2015
@chuanhaisoft
Copy link
Author

thank you for help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants