DebugClients/Ruby/AsyncFile.rb

changeset 2987
c99695c0f13a
parent 2438
61bfcff921d8
child 3160
209a07d7e401
diff -r cd4e2cab7eb2 -r c99695c0f13a DebugClients/Ruby/AsyncFile.rb
--- a/DebugClients/Ruby/AsyncFile.rb	Sun Oct 06 17:27:53 2013 +0200
+++ b/DebugClients/Ruby/AsyncFile.rb	Sun Oct 06 18:02:21 2013 +0200
@@ -84,7 +84,8 @@
             rescue IOError
                 @nWriteErrors += 1
                 if @nWriteErrors > self.maxtries
-                    raise   # assume that an error that occurs 10 times wont go away
+                    raise
+                    # assume that an error that occurs 10 times wont go away
                 end
             end
         end
@@ -283,8 +284,8 @@
         elsif @wpending.length + s.length > @@maxbuffersize
             # flush wpending if too big
             while @wpending.length > 0
-                # if we have a persistent error in sending the data, an exception
-                # will be raised in nWrite
+                # if we have a persistent error in sending the data, an
+                # exception will be raised in nWrite
                 flush
                 tries += 1
                 if tries > @@maxtries

eric ide

mercurial