let vicc recognize shutdown of vpcd
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@323 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -529,7 +529,11 @@ class VirtualICC(object): # {{{
|
||||
|
||||
def __recvFromVPICC(self):
|
||||
# receive message size
|
||||
size = struct.unpack('!H', self.sock.recv(_Csizeof_short))[0]
|
||||
sizestr = self.sock.recv(_Csizeof_short)
|
||||
if len(sizestr) == 0:
|
||||
print "Virtual PCD shut down"
|
||||
sys.exit()
|
||||
size = struct.unpack('!H', sizestr)[0]
|
||||
|
||||
# receive and return message
|
||||
if size:
|
||||
|
||||
Reference in New Issue
Block a user