Merge pull request #36 from ZeroBrain/fix_diconnect_in_polling

NullPointException, in PollingXHR$Request.create()
This commit is contained in:
Naoyuki Kanezawa
2015-10-11 12:57:21 +09:00

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