Upload queue id fix

This commit is contained in:
Milos Kozak 2020-01-25 21:52:03 +01:00
parent d732e20dee
commit 45c6a54e48
2 changed files with 6 additions and 6 deletions

View file

@ -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) {

View file

@ -52,7 +52,11 @@ public class UploadQueue {
} catch (Exception e) {
log.error("Unhandled exception", e);
dbr.nsClientID += "1";
try {
MainApp.getDbHelper().create(dbr);
} catch (Exception e1) {
log.error("Unhandled exception", e1);
}
}
NSClientPlugin plugin = NSClientPlugin.getPlugin();
if (plugin != null) {