Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22889/scripts

Modified Files:
        sb_server.py 
Log Message:
Close messageinfo database on close.

Only close state if it was prepared.

Index: sb_server.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_server.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** sb_server.py        26 Nov 2005 05:12:49 -0000      1.47
--- sb_server.py        28 Nov 2005 02:04:57 -0000      1.48
***************
*** 795,798 ****
--- 795,803 ----
              self.bayes.close()
              self.bayes = None
+         if self.mdb is not None:
+             self.mdb.store()
+             self.mdb.close()
+             self.mdb = None
+             spambayes.message.Message.reload_message_info_db()
  
          self.spamCorpus = self.hamCorpus = self.unknownCorpus = None
***************
*** 996,1001 ****
      del proxyListeners[:]
  
!     # Close the state (which saves if necessary)
!     state.close()
      # And get a new one going.
      state = State()
--- 1001,1007 ----
      del proxyListeners[:]
  
!     if state.prepared:    
!         # Close the state (which saves if necessary)
!         state.close()
      # And get a new one going.
      state = State()

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to