Skip to content

Commit

Permalink
broader exception catchers
Browse files Browse the repository at this point in the history
  • Loading branch information
iNPUTmice committed Aug 30, 2016
1 parent 3685c8c commit 7917c19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private void receiveNextBlock(String data) {
} 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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public void run() {
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();
Expand Down

0 comments on commit 7917c19

Please sign in to comment.