private children

master
Xyc0 2017-08-27 00:33:49 +00:00
parent 1dcd4278ff
commit 3908750ccb
1 changed files with 3 additions and 3 deletions

6
run.py
View File

@ -11,7 +11,7 @@ import subprocess
class Server: class Server:
children = list() _children = list()
host = ('127.0.0.1', 5000) host = ('127.0.0.1', 5000)
sock = socket.socket() sock = socket.socket()
@ -55,8 +55,8 @@ class Server:
@property @property
def children(self): def children(self):
children = self.children children = self._children
self.children = list() self._children = list()
return children return children