1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix calls to static methods in server.py

This commit is contained in:
grossmj 2021-12-15 13:08:18 +10:30
parent ab4d964d69
commit ff64f86289

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.