broader exception catchers

This commit is contained in:
Daniel Gultsch 2016-08-30 13:15:00 +02:00
parent 3685c8cd2a
commit 7917c19d18
2 changed files with 3 additions and 2 deletions

View file

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

View file

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