Exemple #1
0
        public static void OnDisconnect(int index, string ipAddress, string uniqueKey)
        {
            if (FileDownloader.ContainsKey(uniqueKey))
            {
                var handler = FileDownloader[uniqueKey];

                FolderDelete.Delete(handler.Folder);

                FileDownloader.Remove(uniqueKey);

                Global.WriteLog($"Content removed {uniqueKey}", "Green");
            }

            Global.WriteLog($"Disconnected {ipAddress}", "Green");
        }