after creating xhr instance, then xhr would start to connect.
but in connecting, network was disconnected. so I added tyr-catch NullPointException.
This commit is contained in:
@@ -219,6 +219,9 @@ public class PollingXHR extends Polling {
|
|||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
self.onError(e);
|
self.onError(e);
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
// It would occur to disconnect
|
||||||
|
self.onError(e);
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
if (output != null) output.close();
|
if (output != null) output.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user