What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Scheduler and disconnects

Ngh

New Member
Joined
May 18, 2015
Messages
7
Reaction score
0
Hi, would like to know any way to prevent the scheduler plugin from resetting the timer when PoE disconnects (AKA vpn crashes for some reason), since it ruins for me the whole point of the scheduler, since if it crashes, the scheduler starts all over again and never stops.

Thanks
 
not sure if it is right but you could test it
in the scheduler.cs
Code:
private void BotManagerOnOnBotChanged(object sender, BotChangedEventArgs botChangedEventArgs)
        {
            Log.DebugFormat("[BotManagerOnOnBotChanged] Schedule settings reseting due to a bot change.");

            SchedulerSettings.Instance.BotRuntimeStopwatch.Reset();
            SchedulerSettings.Instance.BotIdleStopwatch.Reset();
            SchedulerSettings.Instance.WaitingForIdle = false;
        }
just remove the 3 last lines there, it could work but i am not sure what the exact conditions of BotChangedEventArgs are.
 
Last edited:
not sure if it is right but you could test it
in the scheduler.cs
Code:
private void BotManagerOnOnBotChanged(object sender, BotChangedEventArgs botChangedEventArgs)
        {
            Log.DebugFormat("[BotManagerOnOnBotChanged] Schedule settings reseting due to a bot change.");

            SchedulerSettings.Instance.BotRuntimeStopwatch.Reset();
            SchedulerSettings.Instance.BotIdleStopwatch.Reset();
            SchedulerSettings.Instance.WaitingForIdle = false;
        }
just remove the 3 last lines there, it could work but i am not sure what the exact conditions of BotChangedEventArgs are.


Ty, gonna try it, gonna check the logs tomorrow :)
 
Hey, tried your fix, it does not work :(

If VPN crashes the bot its still restarting the timer of the Scheduler, thanks anyway for taking your time to help me

Any ideas?

EDIT: Another related issue, the bot often crashes when the VPN disconnects too.. giving this line:

[9] INFO Logger (null) - Session is invalid!

Any workaround to fix that?

2ºEDIT:

Nvm, just looked into it and it seems that losing connection to the auth server makes the bot to close itself (obviously, since it has no auth on the key from BuddyAuth)


The easy solution for me is changing the stupid VPN or complain to them till the end of time... (In case someone reads and can recommend a stable VPN send me a PM please)
 
Last edited:
Back
Top