McDermott-Group / servers

Public repo that stores LabRAD servers and other non-measurement related code
0 stars 2 forks source link

[ADR] Poor implementation of case when ADR server closes when client is open #21

Closed roboguy222 closed 8 years ago

roboguy222 commented 8 years ago

Menu, buttons, statuses need to reset or be blanked out or something when the server stops.

roboguy222 commented 8 years ago

There seems to be a problem where names messages are received before the server that sends them is fully connected, and before self.cxn holds a reference to them in the ADR Client. self.cxn['ADR3'] gives a KeyError, for example. Writing a while loop that checks if it is there seems to be either all yes or all no forever, and not change from no to yes as one would expect. Waiting >0.25s before checking seems to generally fix the issue, however. Maybe a bug needs to be reported to the Martinis group.