<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: GamebotsClient connect</title><link>https://sourceforge.net/p/utbot/bugs/2/</link><description>Recent changes to 2: GamebotsClient connect</description><atom:link href="https://sourceforge.net/p/utbot/bugs/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 10 Feb 2003 00:44:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/utbot/bugs/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>GamebotsClient connect</title><link>https://sourceforge.net/p/utbot/bugs/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christos Sioutis</dc:creator><pubDate>Mon, 10 Feb 2003 00:44:39 -0000</pubDate><guid>https://sourceforge.net7e00f6969f84d829e10134b4b4a64ca8f6485886</guid></item></channel></rss>