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