Fixed closeUDP in the MATLAB client to correctly remove closed clients from the global list.

This commit is contained in:
Jason Watkins
2015-05-14 08:33:20 -07:00
parent 6c58a09a8d
commit 4835b5ac9f

View File

@@ -22,6 +22,10 @@ socket.close;
%% Track open clients
global clients;
%TODO: Remove stale clients
for i = 1:length(clients)
if socket == clients(i)
clients = [clients(1:i-1) clients(i+1:length(clients))];
end
end
end