Skip to content

Commit

Permalink
Change object to CallbackMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Oct 30, 2024
1 parent 12f0930 commit a9b73a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace SteamKit2.Internal
abstract class CallbackBase
{
internal abstract Type CallbackType { get; }
internal abstract void Run( object callback );
internal abstract void Run( CallbackMsg callback );
}

sealed class Callback<TCall> : CallbackBase, IDisposable
Expand Down Expand Up @@ -52,7 +52,7 @@ public void Dispose()
System.GC.SuppressFinalize( this );
}

internal override void Run( object callback )
internal override void Run( CallbackMsg callback )
{
var cb = callback as TCall;
if ( cb != null && ( cb.JobID == JobID || JobID == JobID.Invalid ) && OnRun != null )
Expand Down

0 comments on commit a9b73a6

Please sign in to comment.