Skip to content

Commit

Permalink
Commented out __del__
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaussel committed Jul 22, 2007
1 parent 60db893 commit 9f2198c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions smartcard/CardMonitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,12 @@ def __getattr__( self, name ):
if self.instance:
return getattr( self.instance, name )

def __del__(self):
if CardMonitoringThread.instance!=None:
CardMonitoringThread.instance.stop()
CardMonitoringThread.instance = None
# commented to avoid bad clean-up sequence of python where __del__ is called when
# some objects it uses are already gargabe collected
#def __del__(self):
# if CardMonitoringThread.instance!=None:
# CardMonitoringThread.instance.stop()
# CardMonitoringThread.instance = None


if __name__ == "__main__":
Expand Down

0 comments on commit 9f2198c

Please sign in to comment.