sessionmanager: correct ponging of the ping. (#1878)

* sessionmanager: correct ponging of the ping.

* sessionmanager: use declared methods over methods.
This commit is contained in:
Ganom
2019-11-02 15:59:05 -04:00
committed by GitHub
parent 856e37bec4
commit d898fa1fc3
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ public class ClientSessionManager
}
@Schedule(period = 10, unit = ChronoUnit.MINUTES, asynchronous = true)
private void ping()
public void ping()
{
if (sessionId == null)
{

View File

@@ -62,7 +62,7 @@ public class Scheduler
public void registerObject(Object obj)
{
for (Method method : obj.getClass().getMethods())
for (Method method : obj.getClass().getDeclaredMethods())
{
Schedule schedule = method.getAnnotation(Schedule.class);
if (schedule == null)