Code cleanup.
This commit is contained in:
@@ -51,6 +51,7 @@ namespace Cryville.Common.Network.Http11 {
|
|||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
Dispose(true);
|
Dispose(true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Dispose(bool disposing) {
|
public virtual void Dispose(bool disposing) {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ namespace Cryville.Common.Network.Http11 {
|
|||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
Dispose(true);
|
Dispose(true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Dispose(bool disposing) {
|
public virtual void Dispose(bool disposing) {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ namespace Cryville.Common.Network {
|
|||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
Dispose(true);
|
Dispose(true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Dispose(bool disposing) {
|
public virtual void Dispose(bool disposing) {
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
#endif
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Cryville.Input.Unity.Android {
|
|||||||
|
|
||||||
readonly Thread _thread;
|
readonly Thread _thread;
|
||||||
private AndroidInputPoller() {
|
private AndroidInputPoller() {
|
||||||
_thread = new Thread(ThreadLogic);
|
_thread = new Thread(ThreadLogic) { IsBackground = true, Priority = ThreadPriority.AboveNormal };
|
||||||
_thread.Start();
|
_thread.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user