Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Proxy not connecting #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the proxy was working with version 2.1 but i've tryed to update my program
so it works with lastes sources and the proxy is not working now.

i have this code:
        private void Form1_Load(object sender, EventArgs e)
        {
            client = Client.Open();
            tmrlogin.Enabled = true;
            advanced = false;
            client.StartProxy();
        }
 But i never get the character list, it doesnt give an error neither. But
i've seen that id i put a wrong acc/pass it says wrong acc/pass so i guess
something is wrong with the proxy or  my code maybe, any idea?

Original issue reported on code.google.com by warma...@gmail.com on 1 Jun 2008 at 11:30

GoogleCodeExporter commented 9 years ago
You should always wait around 1 second after calling Client.Open(), as the 
client
needs time to initialize everything. Try putting 
System.Threading.Thread.Sleep(1000)
after Client.Open() and see if it works better.

Original comment by ian320 on 2 Jun 2008 at 3:09

GoogleCodeExporter commented 9 years ago
i tryed this code here and it worked after i added 
System.Threading.Thread.Sleep(1000)

Original comment by marcsal...@gmail.com on 6 Jun 2008 at 12:18

GoogleCodeExporter commented 9 years ago
Good :)

Original comment by ian320 on 6 Jun 2008 at 1:22