/// <recv-abort what='file' id='10' /> private void OnRecvAbortEvent(PeerSocket peer, XmlRequest xml) { Gtk.Application.Invoke(delegate { string what = (string)xml.Attributes["what"]; if (what == "file") { ulong id = ulong.Parse((string)xml.Attributes["id"]); UploadManager.Abort(peer, id); } }); }