Resolved Programmatically Exit Client

Discussion in 'Client & Site Support' started by The_Scrub, Dec 25, 2014.

  1. The_Scrub

    Joined:
    Nov 6, 2013
    Messages:
    16
    Likes Received:
    4
    Hey I'm currently using the system class to exit the client then run my bat files
    but i get alot of timeout crap when i try to open it sometimes and this is because the system class is not a safe way to exit the client could you add an api method to exit the client safely.
     
  2. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,532
    Likes Received:
    1,047
    In other words, he wants to be able to exit the client from batch (presumably to programmatically restart it), but safely terminate the RuneMate session so he does not run out of available sessions. Is there any way we can interrupt the system exit and execute our shutdown hook before letting it continue @Cloud?
     
    The_Scrub likes this.
  3. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,416
    Likes Received:
    796
    System.exit should be calling the shutdown hook, which should sign you out.
     
    azeon likes this.
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,532
    Likes Received:
    1,047
    From my conversation with him earlier, it's safe to assume that he is consistently not being signed out of his session. Can we debug this a little further?
     
  5. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,532
    Likes Received:
    1,047
    A reminder for @Cloud to test System.exit behavior so we can gain further insight.
     

Share This Page

Loading...