public void Stop() { lock (this) { rttask.Stop(); uc.Close(); fstr.Close(); } }
public static void Stop() { mainthread.Abort(); udpsock.Close(); foreach (RDTSender s in AClients.Values) { s.Stop(); } AClients.Clear(); cleaner.Stop(); }