broader exception catchers
This commit is contained in:
parent
3685c8cd2a
commit
7917c19d18
|
@ -209,7 +209,7 @@ public class JingleInbandTransport extends JingleTransport {
|
||||||
} else {
|
} else {
|
||||||
connection.updateProgress((int) ((((double) (this.fileSize - this.remainingSize)) / this.fileSize) * 100));
|
connection.updateProgress((int) ((((double) (this.fileSize - this.remainingSize)) / this.fileSize) * 100));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": "+e.getMessage());
|
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": "+e.getMessage());
|
||||||
FileBackend.close(fileOutputStream);
|
FileBackend.close(fileOutputStream);
|
||||||
this.onFileTransmissionStatusChanged.onFileTransferAborted();
|
this.onFileTransmissionStatusChanged.onFileTransferAborted();
|
||||||
|
|
|
@ -92,7 +92,8 @@ public class PushManagementService {
|
||||||
try {
|
try {
|
||||||
String token = instanceID.getToken(mXmppConnectionService.getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
|
String token = instanceID.getToken(mXmppConnectionService.getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
|
||||||
instanceTokenRetrieved.onGcmInstanceTokenRetrieved(token);
|
instanceTokenRetrieved.onGcmInstanceTokenRetrieved(token);
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
|
Log.d(Config.LOGTAG,"unable to get push token");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
|
|
Loading…
Reference in a new issue