soc/tools/remove/server: avoid closing server when client closes connection

This commit is contained in:
Florent Kermarrec 2015-12-27 22:33:08 +01:00
parent 0498a31818
commit 7b879b36c6
1 changed files with 6 additions and 3 deletions

View File

@ -32,9 +32,12 @@ class RemoteServer(EtherboneIPC):
print("Connected with " + addr[0] + ":" + str(addr[1]))
try:
while True:
try:
packet = self.receive_packet(client_socket)
if packet == 0:
break
except:
break
packet = EtherbonePacket(packet)
packet.decode()