whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: close file (and release lock) before retry
Date Wed, 17 Aug 2016 00:15:33 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  26f7ea6   close file (and release lock) before retry
26f7ea6 is described below

commit 26f7ea6391e56f51664fe7887d7d036678debce4
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Aug 16 20:14:51 2016 -0400

    close file (and release lock) before retry
---
 www/board/agenda/models/agenda.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/board/agenda/models/agenda.rb b/www/board/agenda/models/agenda.rb
index ff9f44c..0df47e3 100755
--- a/www/board/agenda/models/agenda.rb
+++ b/www/board/agenda/models/agenda.rb
@@ -142,6 +142,7 @@ class Agenda
       else
         # if not successful, retry
         if retries > 0
+          work_file.close
           sleep rand(41-retries*2)*0.1 if retries <= 20
           update(file, message, retries-1, &block)
         else

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message