Skip to content

Commit cd3c631

Browse files
committed
initialize attributes in __init__
1 parent 7b1b8a9 commit cd3c631

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/robotremoteserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def __init__(self, library, host='127.0.0.1', port=8270, port_file=None,
4444
SimpleXMLRPCServer.__init__(self, (host, int(port)), logRequests=False)
4545
self._library = library
4646
self._allow_stop = allow_stop
47+
self._shutdown = False
4748
self._register_functions()
4849
self._register_signal_handlers()
4950
self._announce_start(port_file)
@@ -77,7 +78,6 @@ def _announce_start(self, port_file=None):
7778
pf.close()
7879

7980
def serve_forever(self):
80-
self._shutdown = False
8181
while not self._shutdown:
8282
self.handle_request()
8383

0 commit comments

Comments
 (0)