joey jojo junior shabadoo

that's the worst name i've ever heard
This commit is contained in:
Malloc of Kuzkycyziklistan 2017-08-28 16:15:10 -05:00
parent 97a5626fd9
commit adb6c87a83
2 changed files with 13 additions and 1 deletions

View file

@ -1,11 +1,23 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Net.Sockets;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace SockScape.Socks { namespace SockScape.Socks {
class MasterUdpClient { class MasterUdpClient {
private static UdpClient Sock;
private static bool IsOpen;
public static void Initialize() {
if(IsOpen)
return;
short port = (short) Configuration.General["Master Port"];
Sock = new UdpClient(port);
IsOpen = true;
}
} }
} }

View file

@ -14,7 +14,7 @@ namespace SockScape.Socks {
private static bool IsOpen; private static bool IsOpen;
public static void Initialize() { public static void Initialize() {
if(!IsOpen && ListeningThread == null) if(IsOpen || ListeningThread != null)
return; return;
short port = (short)Configuration.General["Master Port"]; short port = (short)Configuration.General["Master Port"];