diff options
| author | Michael <[email protected]> | 2017-04-14 13:06:13 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-14 13:06:13 -0400 |
| commit | 6ec8e375c4b756bcd323df6babd4a4a74cd75904 (patch) | |
| tree | 8ccb0de375636371a879560b2effd43bdfdfc97c /ShiftOS_TheReturn | |
| parent | 4d3eb794b532a13a24107e54947022aed841d165 (diff) | |
| download | shiftos_thereturn-6ec8e375c4b756bcd323df6babd4a4a74cd75904.tar.gz shiftos_thereturn-6ec8e375c4b756bcd323df6babd4a4a74cd75904.tar.bz2 shiftos_thereturn-6ec8e375c4b756bcd323df6babd4a4a74cd75904.zip | |
Desktop preview
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/ServerManager.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/ServerManager.cs b/ShiftOS_TheReturn/ServerManager.cs index 4fce247..d356600 100644 --- a/ShiftOS_TheReturn/ServerManager.cs +++ b/ShiftOS_TheReturn/ServerManager.cs @@ -34,6 +34,7 @@ using System.Threading; using ShiftOS; using static ShiftOS.Engine.SaveSystem; using Newtonsoft.Json; +using System.Net.Sockets; namespace ShiftOS.Engine { @@ -191,8 +192,15 @@ namespace ShiftOS.Engine } }; - client.Connect(mud_address, port); - + try + { + client.Connect(mud_address, port); + } + catch(SocketException ex) + { + System.Diagnostics.Debug.Print(ex.ToString()); + Initiate(mud_address, port); + } } public static void SendMessage(string name, string contents) |
