]> code.delx.au - pymsnt/commitdiff
If the SLPLink is terminated due to an error, discard any data. This stops an excepti...
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Thu, 8 Jun 2006 14:50:09 +0000 (14:50 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Thu, 8 Jun 2006 14:50:09 +0000 (14:50 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@174 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/tlib/msn/msn.py

index fcab164707075d7226403463c5bf87c342695b07..0fadf58695aa82c8d59744fb4749c14917ba20cb 100644 (file)
@@ -2877,6 +2877,7 @@ class SLPLink_FileSend(SLPLink_Send):
             if slpMessage.status == "603":
                 self.acceptDeferred.callback((False,))
             if MSNP2PDEBUG: log.msg("SLPLink is over due to decline, error or BYE")
             if slpMessage.status == "603":
                 self.acceptDeferred.callback((False,))
             if MSNP2PDEBUG: log.msg("SLPLink is over due to decline, error or BYE")
+            self.data = ""
             self.killLink()
 
     def wait_data_ack(self, packet):
             self.killLink()
 
     def wait_data_ack(self, packet):