summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-02-09 17:36:35 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-02-09 17:36:35 +0000
commit23e3173f242db2e4a2867ae27ea4c3a22b085a8e (patch)
tree9e6c7325f13b05833a4e87aee3814de55bf4d3f6
parent07202f62da21ecf978496f4bec7f97522f2fbe75 (diff)
downloadfeed2imap-23e3173f242db2e4a2867ae27ea4c3a22b085a8e.tar.gz
feed2imap-23e3173f242db2e4a2867ae27ea4c3a22b085a8e.tar.bz2
feed2imap-23e3173f242db2e4a2867ae27ea4c3a22b085a8e.zip
another try
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@81 f70e237a-67f3-0310-a06c-d2b8a7116972
-rw-r--r--lib/feed2imap/feed2imap.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index a8fd1fb..c7d8a2a 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -102,8 +102,7 @@ class Feed2Imap
ths = []
mutex = Mutex::new
@config.feeds.each do |f|
- ths << Thread::new do
- url = f.url
+ ths << Thread::new(f) do
begin
mutex.lock
lastcheck = @cache.get_last_check(f.name)
@@ -126,11 +125,11 @@ class Feed2Imap
end
rescue Timeout::Error
mutex.synchronize do
- @logger.fatal("Timeout::Error while fetching #{url}: #{$!}")
+ @logger.fatal("Timeout::Error while fetching #{f.url}: #{$!}")
end
rescue
mutex.synchronize do
- @logger.fatal("Error while fetching #{url}: #{$!}")
+ @logger.fatal("Error while fetching #{f.url}: #{$!}")
end
end
end
mit/portato/db/sql.py?h=no_config&id=c9ffb9d6d68161f1063adbaecb9c1db925745c2e&follow=1'>Fix an error, where a category vanishes after refreshing, using the EixSQLDat...René 'Necoro' Neumann2-1/+19 2009-09-03And here is the debugging again :) ... using ctypesRené 'Necoro' Neumann1-1/+8 2009-09-03Screw debugging ... prefer the ctypes approach to get rid of yet another c-mo...René 'Necoro' Neumann3-27/+11 2009-09-03Use this wrapper instead of ctypes to set the textdomain and stuff for the gt...René 'Necoro' Neumann1-9/+5 2009-09-03Add small wrapper to C-gettextRené 'Necoro' Neumann2-1/+22 2009-08-31Update messages.potRené 'Necoro' Neumann1-42/+94 2009-08-31Removed the gtk- strings from translationsRené 'Necoro' Neumann7-3639/+3479 2009-08-31Removed the 'translatable' attribute from 'gtk-*' stringsRené 'Necoro' Neumann5-11/+11 2009-08-31Removed TODO. Renamed ChangeLog to TODORené 'Necoro' Neumann2-40/+0 2009-08-27Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8 2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0