소스 검색

The make_certificate task must borrow an init token

Paul-Louis Ageneau 2 년 전
부모
커밋
9247d48998
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/impl/certificate.cpp

+ 1 - 1
src/impl/certificate.cpp

@@ -329,7 +329,7 @@ string make_fingerprint(X509 *x509) {
 // Common for GnuTLS and OpenSSL
 
 future_certificate_ptr make_certificate(CertificateType type) {
-	return ThreadPool::Instance().enqueue([type]() {
+	return ThreadPool::Instance().enqueue([type, token = Init::Instance().token()]() {
 		return std::make_shared<Certificate>(Certificate::Generate(type, "libdatachannel"));
 	});
 }