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) {
self.onError(e);
} catch (NullPointerException e) {
// It would occur to disconnect
self.onError(e);
} finally {
try {
if (output != null) output.close();