Fix misc bug, #48

This commit is contained in:
JustArchi
2016-03-09 03:52:04 +01:00
parent a823471771
commit 71ae9a84da
2 changed files with 4 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
@@ -257,7 +258,7 @@ namespace ArchiSteamFarm {
internal static bool Restart() {
try {
// TODO: This probably won't work on Mono, I wonder if I can make it work at some point
if (Process.Start(ExecutableFile, string.Join(" ", Environment.GetCommandLineArgs())) != null) {
if (Process.Start(ExecutableFile, string.Join(" ", Environment.GetCommandLineArgs().Skip(1))) != null) {
Exit();
return true;
} else {