Upload queue id fix
This commit is contained in:
parent
d732e20dee
commit
45c6a54e48
2 changed files with 6 additions and 6 deletions
|
@ -550,12 +550,8 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
|||
|
||||
// ------------- DbRequests handling -------------------
|
||||
|
||||
public void create(DbRequest dbr) {
|
||||
try {
|
||||
public void create(DbRequest dbr) throws SQLException {
|
||||
getDaoDbRequest().create(dbr);
|
||||
} catch (SQLException e) {
|
||||
log.error("Unhandled exception", e);
|
||||
}
|
||||
}
|
||||
|
||||
public int delete(DbRequest dbr) {
|
||||
|
|
|
@ -52,7 +52,11 @@ public class UploadQueue {
|
|||
} catch (Exception e) {
|
||||
log.error("Unhandled exception", e);
|
||||
dbr.nsClientID += "1";
|
||||
MainApp.getDbHelper().create(dbr);
|
||||
try {
|
||||
MainApp.getDbHelper().create(dbr);
|
||||
} catch (Exception e1) {
|
||||
log.error("Unhandled exception", e1);
|
||||
}
|
||||
}
|
||||
NSClientPlugin plugin = NSClientPlugin.getPlugin();
|
||||
if (plugin != null) {
|
||||
|
|
Loading…
Reference in a new issue