LPCconnector/LPCAppProto.py
changeset 45 786b12887e91
parent 36 73360d0bacbc
child 47 f860aa7e90e5
--- a/LPCconnector/LPCAppProto.py	Mon Apr 29 17:29:59 2013 +0900
+++ b/LPCconnector/LPCAppProto.py	Mon Apr 29 17:31:24 2013 +0900
@@ -6,7 +6,6 @@
 
 class LPCAppProto(LPCProto):
     def HandleTransaction(self, transaction):
-        self.TransactionLock.acquire()
         try:
             transaction.SetPseudoFile(self.serialPort)
             # send command, wait ack (timeout)
@@ -18,8 +17,6 @@
                 raise LPCProtoError("controller did not answer as expected")
         except Exception, e:
             raise LPCProtoError("application mode transaction error : "+str(e))
-        finally:
-            self.TransactionLock.release()
         return LPC_STATUS.get(current_plc_status,"Broken"), res
     
 class LPCAppTransaction: