change the this argument for the callback

This commit is contained in:
blagoev 2017-09-12 02:47:07 +03:00
parent 2b6dc8fc14
commit 069bdfd2af
1 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ void SessionClass<T>::add_progress_notification(ContextType ctx, FunctionType, O
callback_arguments[0] = Value::from_number(protected_ctx, transferred_bytes);
callback_arguments[1] = Value::from_number(protected_ctx, transferrable_bytes);
Function<T>::callback(protected_ctx, protected_callback, protected_this, 2, callback_arguments);
Function<T>::callback(protected_ctx, protected_callback, typename T::Object(), 2, callback_arguments);
});
progressFunc = std::move(progress_handler);