mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-29 16:10:04 +00:00
Fix cleanup connections in HttpClient
This commit is contained in:
@@ -468,8 +468,8 @@ pub fn BrowserContext(comptime CDP_T: type) type {
|
||||
if (self.http_proxy_changed) {
|
||||
// has to be called after browser.closeSession, since it won't
|
||||
// work if there are active connections.
|
||||
browser.http_client.restoreOriginalProxy() catch |err| {
|
||||
log.warn(.http, "restoreOriginalProxy", .{ .err = err });
|
||||
browser.http_client.changeProxy(null) catch |err| {
|
||||
log.warn(.http, "changeProxy", .{ .err = err });
|
||||
};
|
||||
}
|
||||
self.intercept_state.deinit();
|
||||
|
||||
Reference in New Issue
Block a user