Changeset 60:4e5cf2872895 in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
12/23/08 19:42:40 (10 years ago)
Author:
Nikolas Tautenhahn <nik@…>
Branch:
default
Message:

fixed flush_buffer

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh_sender.py

    r59 r60  
    179179                    self.buffer = self.buffer[i:] 
    180180                    break 
     181            else: # we didn't break the for loop so all data was transmitted successfully 
     182                self.buffer = [] 
     183                if self.f: 
     184                    self.f.close() 
     185                    self.f = None 
     186                return 
    181187        if self.buffer: 
    182188            if self.f: