catch dberror
This commit is contained in:
parent
1680f190b0
commit
6c23cb1d29
1 changed files with 7 additions and 1 deletions
|
@ -47,7 +47,13 @@ public class UploadQueue {
|
|||
NSClientService.handler.post(() -> {
|
||||
if (L.isEnabled(L.NSCLIENT))
|
||||
log.debug("Adding to queue: " + dbr.data);
|
||||
try {
|
||||
MainApp.getDbHelper().create(dbr);
|
||||
} catch (Exception e) {
|
||||
log.error("Unhandled exception", e);
|
||||
dbr.nsClientID += "1";
|
||||
MainApp.getDbHelper().create(dbr);
|
||||
}
|
||||
NSClientPlugin plugin = NSClientPlugin.getPlugin();
|
||||
if (plugin != null) {
|
||||
plugin.resend("newdata");
|
||||
|
|
Loading…
Reference in a new issue