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

[TICKET] The new close DB when attached D3 closed -> EATS SESSIONS

sinterlkaas

New Member
Joined
Jan 17, 2012
Messages
536
Reaction score
14
When I just close D3 it does close DB aswell but it is not a clean exit it is causing some exception errors... could this be related to bot still running + DB stats ? anyway this is eating sessions
 

Attachments

When testing with stopping DB then closing D3
... DB kicks in and closes and it does not cause a session to be eaten ..

Code:
public static void Close(bool forceD3 = false)
        {
            try
            {
                if (BotMain.IsRunning)
                    BotMain.Stop();
            }
            catch { }
            // Check if we need to close Diablo
            try
            {
                if (forceD3)
                {
                    Logger.Log("Closing " + findD3Pid.pDiablo.ProcessName + ":" + findD3Pid.pDiablo.Id);
                    Thread.Sleep(1000);
                    if (findD3Pid.pDiablo != null && !findD3Pid.pDiablo.HasExited)
                        findD3Pid.pDiablo.Kill();
                }
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
            }


        }
 
Back
Top