Fixed NRE in request

This commit is contained in:
Garry Newman 2016-11-08 10:14:10 +00:00
parent 755b238e1d
commit 9d8141475f

View File

@ -195,7 +195,8 @@ namespace Facepunch.Steamworks
/// </summary>
public void Dispose()
{
client.OnUpdate -= Update;
if ( client.IsValid )
client.OnUpdate -= Update;
//
// Cancel the query if it's still running