Fix calls to static methods in server.py

This commit is contained in:
grossmj committed 2021-12-15 13:08:18 +10:30
1 parent ab4d964d69
commit ff64f86289
1 file changed
+3 -3
+3 -3
View File
@@ -201,9 +201,9 @@ class Server:
loop.add_signal_handler(getattr(signal, signal_name), callback)
@staticmethod
def _kill_ghosts(self):
def _kill_ghosts():
"""
Kill process from previous GNS3 session
Kill processes from previous GNS3 session
"""
detect_process = ["vpcs", "ubridge", "dynamips"]
for proc in psutil.process_iter():
@@ -216,7 +216,7 @@ class Server:
pass
@staticmethod
def _pid_lock(self, path):
def _pid_lock(path):
"""
Write the file in a file on the system.
Check if the process is not already running.