changed internal method name
This commit is contained in:
parent
1d7bd02382
commit
797ebdd200
1 changed files with 3 additions and 3 deletions
|
@ -68,14 +68,14 @@ public class ServerPushService {
|
||||||
}
|
}
|
||||||
|
|
||||||
business.accept(context);
|
business.accept(context);
|
||||||
updateGUI(context, update);
|
doUpdate(context, update);
|
||||||
|
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
log.error("Unexpected error while do business for server push service", e);
|
log.error("Unexpected error while do business for server push service", e);
|
||||||
context.internalStop = context.errorHandler.apply(e);
|
context.internalStop = context.errorHandler.apply(e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
updateGUI(context, update);
|
doUpdate(context, update);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ public class ServerPushService {
|
||||||
bgThread.start();
|
bgThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateGUI(
|
private void doUpdate(
|
||||||
final ServerPushContext context,
|
final ServerPushContext context,
|
||||||
final Consumer<ServerPushContext> update) {
|
final Consumer<ServerPushContext> update) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue