mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
fix AsyncDownloader class not code completing in my IDE
This commit is contained in:
parent
3286f3e7ee
commit
cca865ce0c
@ -12,13 +12,12 @@ using Android.Graphics;
|
||||
|
||||
namespace ClassicalSharp.Network {
|
||||
|
||||
#if !LAUNCHER
|
||||
#if LAUNCHER
|
||||
public interface IGameComponent { }
|
||||
#endif
|
||||
|
||||
/// <summary> Specialised producer and consumer queue for downloading data asynchronously. </summary>
|
||||
public class AsyncDownloader : IGameComponent {
|
||||
#else
|
||||
/// <summary> Specialised producer and consumer queue for downloading data asynchronously. </summary>
|
||||
public class AsyncDownloader {
|
||||
#endif
|
||||
|
||||
EventWaitHandle handle = new EventWaitHandle(false, EventResetMode.AutoReset);
|
||||
Thread worker;
|
||||
@ -146,7 +145,7 @@ namespace ClassicalSharp.Network {
|
||||
|
||||
handle.Set();
|
||||
worker.Join();
|
||||
((IDisposable)handle).Dispose();
|
||||
handle.Close();
|
||||
}
|
||||
|
||||
#if !LAUNCHER
|
||||
|
Loading…
x
Reference in New Issue
Block a user