soc/tools/remove/server: avoid closing server when client closes connection
This commit is contained in:
parent
0498a31818
commit
7b879b36c6
|
@ -32,9 +32,12 @@ class RemoteServer(EtherboneIPC):
|
||||||
print("Connected with " + addr[0] + ":" + str(addr[1]))
|
print("Connected with " + addr[0] + ":" + str(addr[1]))
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
packet = self.receive_packet(client_socket)
|
try:
|
||||||
if packet == 0:
|
packet = self.receive_packet(client_socket)
|
||||||
break
|
if packet == 0:
|
||||||
|
break
|
||||||
|
except:
|
||||||
|
break
|
||||||
packet = EtherbonePacket(packet)
|
packet = EtherbonePacket(packet)
|
||||||
packet.decode()
|
packet.decode()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue