fantasdic r376 - in trunk: . lib/fantasdic/sources
- From: mblondel svn gnome org
- To: svn-commits-list gnome org
- Subject: fantasdic r376 - in trunk: . lib/fantasdic/sources
- Date: Mon, 5 Jan 2009 23:33:47 +0000 (UTC)
Author: mblondel
Date: Mon Jan 5 23:33:47 2009
New Revision: 376
URL: http://svn.gnome.org/viewvc/fantasdic?rev=376&view=rev
Log:
* lib/fantasdic/sources/dict_server.rb: Fixed bug when the server is
listening but doesn't talk the right protocol.
Modified:
trunk/ChangeLog
trunk/lib/fantasdic/sources/dict_server.rb
Modified: trunk/lib/fantasdic/sources/dict_server.rb
==============================================================================
--- trunk/lib/fantasdic/sources/dict_server.rb (original)
+++ trunk/lib/fantasdic/sources/dict_server.rb Mon Jan 5 23:33:47 2009
@@ -261,7 +261,8 @@
@config[:server],
@config[:port])
end
- rescue DICTClient::ConnectionError, Errno::ECONNRESET => e
+ rescue DICTClient::ConnectionError, Errno::ECONNRESET,
+ DICTClient::ConnectionLost => e
DICTClient.close_all_connections
raise Source::SourceError,
_("Could not connect to %s") % @config[:server]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]