Skip to content

Commit

Permalink
fix a bug with the csharpserver status not being set properly (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnybod authored Jun 10, 2021
1 parent 7e4a4a7 commit b829418
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions empire/server/plugins/csharpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def do_csharpserver(self, *args):
self.csharpserver_proc.kill()
self.main_menu.plugin_socketio_message(self.info[0]['Name'],
"[*] Stopping Empire C# server")
self.status = "OFF"
else:
self.main_menu.plugin_socketio_message(self.info[0]['Name'],
"[!] Empire C# server is already stopped")
Expand All @@ -113,6 +114,7 @@ def do_csharpserver(self, *args):
csharp_cmd = ["dotnet",
self.installPath + "/csharp/Covenant/bin/Debug/netcoreapp3.1/EmpireCompiler.dll"]
self.csharpserver_proc = subprocess.Popen(csharp_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
self.status = "ON"
else:
self.main_menu.plugin_socketio_message(self.info[0]['Name'],
"[!] Empire C# server is already started")
Expand Down

0 comments on commit b829418

Please sign in to comment.