<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: GamebotsClient connect</title><link href="https://sourceforge.net/p/utbot/bugs/2/" rel="alternate"/><link href="https://sourceforge.net/p/utbot/bugs/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/utbot/bugs/2/</id><updated>2003-02-10T00:44:39Z</updated><subtitle>Recent changes to 2: GamebotsClient connect</subtitle><entry><title>GamebotsClient connect</title><link href="https://sourceforge.net/p/utbot/bugs/2/" rel="alternate"/><published>2003-02-10T00:44:39Z</published><updated>2003-02-10T00:44:39Z</updated><author><name>Christos Sioutis</name><uri>https://sourceforge.net/u/xristaras1/</uri></author><id>https://sourceforge.net7e00f6969f84d829e10134b4b4a64ca8f6485886</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please consider this,&lt;/p&gt;
&lt;p&gt;The GamebotsClient.java &amp;amp;quot;connect&amp;amp;quot; method declares that&lt;br /&gt;
it throws an IOException, I presume this is when the&lt;br /&gt;
client cannot connect to the gamebots server, which is&lt;br /&gt;
good.&lt;/p&gt;
&lt;p&gt;The problem i have is that all the connection code has&lt;br /&gt;
been wrapped within a try/catch block. This means that&lt;br /&gt;
when a connection cannot be made, the client simply&lt;br /&gt;
logs the error in line 249.&lt;/p&gt;
&lt;p&gt;My class therefore which extends Bot, does not get&lt;br /&gt;
notified if the connection fails. i.e. the log shows&lt;br /&gt;
it, but my software continues on as though the&lt;br /&gt;
connection has been established and crashes further on.&lt;/p&gt;
&lt;p&gt;I fixed this problem by removing the try/catch block,&lt;br /&gt;
(commented out lines 229, 248, 249 &amp;amp;amp; 250). If the&lt;br /&gt;
connection fails now, my class recieves the IOException&lt;br /&gt;
and quits gracefully.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>