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:
ZeroBrain
2015-10-10 13:47:05 +09:00
committed by jsuch2362
parent 0974154181
commit 9423449cfd

View File

@@ -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();