From df7b5d2bb012129b7cf50ffc687a333c8401733c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 24 十一月 2018 17:46:03 +0800
Subject: [PATCH] 4762 修改 B2 08 获得仙缘币信息 #tagMCAddXianyuanCoinMsg

---
 Tool/Robot/Robot/RobotBase.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Tool/Robot/Robot/RobotBase.py b/Tool/Robot/Robot/RobotBase.py
index ea48ff3..440c250 100644
--- a/Tool/Robot/Robot/RobotBase.py
+++ b/Tool/Robot/Robot/RobotBase.py
@@ -367,6 +367,8 @@
             self.allsend += sendPack.GetLength()
             logging.debug( "%s send %d bytes data. recvAll:%d sendAll:%d ALL:%d" % \
                           ( str(self), sendPack.GetLength(), self.allrecv, self.allsend, self.allrecv+self.allsend ) )
+        if not self.__peer:
+            return
         self.__mgr.SendData( self.__peer, sendPack.GetBuffer(), sendPack.GetLength() )
         
     

--
Gitblit v1.8.0