Skip to content

Commit 87d7b14

Browse files
committed
Fix close implementation
1 parent 3cd3c2b commit 87d7b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lighthouse-client/src/lighthouse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl<S> Lighthouse<S>
303303
/// Closes the WebSocket connection gracefully with a close message. While
304304
/// the server will usually also handle abruptly closed connections
305305
/// properly, it is recommended to always close the [``Lighthouse``].
306-
pub async fn close(&self) -> Result<()> {
307-
Ok(self.ws_sink.lock().await.close().await?)
306+
pub async fn close(&mut self) -> Result<()> {
307+
Ok(self.ws_sink.close().await?)
308308
}
309309
}

0 commit comments

Comments
 (0)