Skip to content

Commit e03d63b

Browse files
committed
fix: fixed memory leak jeej
1 parent f459cfa commit e03d63b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plex_client.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ impl PlexClient {
372372
// .build();
373373
// let res = client.execute(req).await.map_err(Error::other)?;
374374

375-
let res = Client::new().execute(req).await.map_err(Error::other)?;
375+
//let res = Client::new().execute(req).await.map_err(Error::other)?;
376+
let res = self.http_client.execute(req).await.map_err(Error::other)?;
376377
//return Ok(MediaContainerWrapper::default());
377378
// headers.insert(
378379
// "X-Plex-Token",

0 commit comments

Comments
 (0)