Fix implementation of IDisposable interfaces
This commit is contained in:
@@ -551,14 +551,14 @@ namespace OpenMetaverse
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
public virtual void Dispose(bool disposing)
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!disposing) return;
|
||||
|
||||
AckTimer?.Dispose();
|
||||
PingTimer?.Dispose();
|
||||
StatsTimer?.Dispose();
|
||||
ConnectedEvent?.Close();
|
||||
ConnectedEvent?.Dispose();
|
||||
|
||||
// Force all the CAPS connections closed for this simulator
|
||||
Caps?.Disconnect(true);
|
||||
|
||||
@@ -288,7 +288,16 @@ namespace OpenMetaverse.Voice
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
Stop();
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
}
|
||||
|
||||
internal string GetVoiceDaemonPath()
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace OpenMetaverse
|
||||
"simstate", // 22
|
||||
string.Empty, // 23
|
||||
"link", // 24
|
||||
"link_f", // 25
|
||||
"link_f", // 25
|
||||
string.Empty, // 26
|
||||
string.Empty, // 27
|
||||
string.Empty, // 28
|
||||
|
||||
Reference in New Issue
Block a user