fix(napi): remove useless aquire while creating ThreadsafeFunction (#1442)
This commit is contained in:
parent
3db49adcdc
commit
6739ddda20
2 changed files with 3 additions and 7 deletions
crates/napi/src
|
@ -246,8 +246,6 @@ impl<T: 'static, ES: ErrorStrategy::T> ThreadsafeFunction<T, ES> {
|
|||
)
|
||||
})?;
|
||||
|
||||
check_status!(unsafe { sys::napi_acquire_threadsafe_function(raw_tsfn) })?;
|
||||
|
||||
Ok(ThreadsafeFunction {
|
||||
handle: Arc::new(ThreadsafeFunctionHandle {
|
||||
raw: raw_tsfn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue