Back out "Clear handlers on disconnect"
Summary: ^ Revert as to validate this is not causing regressions: T143523262 Reviewed By: passy Differential Revision: D42800560 fbshipit-source-id: 8db61454eabfdb259637bb97c2bb4754984ecf6f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2cc273ce96
commit
2ba167f899
@@ -112,15 +112,15 @@ bool FlipperWebSocket::connect(FlipperConnectionManager* manager) {
|
||||
};
|
||||
|
||||
if (endpoint_.secure) {
|
||||
[socket_
|
||||
setCertificateProvider:[this](char* _Nonnull password, size_t length) {
|
||||
auto pkcs12 = connectionContextStore_->getCertificate();
|
||||
if (pkcs12.first.length() == 0) {
|
||||
return std::string("");
|
||||
}
|
||||
strncpy(password, pkcs12.second.c_str(), length);
|
||||
return pkcs12.first;
|
||||
}];
|
||||
socket_.certificateProvider = [this](
|
||||
char* _Nonnull password, size_t length) {
|
||||
auto pkcs12 = connectionContextStore_->getCertificate();
|
||||
if (pkcs12.first.length() == 0) {
|
||||
return std::string("");
|
||||
}
|
||||
strncpy(password, pkcs12.second.c_str(), length);
|
||||
return pkcs12.first;
|
||||
};
|
||||
}
|
||||
|
||||
[socket_ connect];
|
||||
|
||||
Reference in New Issue
Block a user