mirror of
https://codeberg.org/bunbun/fluffle/
synced 2025-06-06 22:19:50 -07:00
temporary fix for poison error
This commit is contained in:
@ -44,7 +44,10 @@ impl Server {
|
||||
|
||||
if bytes_read > 0 {
|
||||
if let Ok(request_str) = from_utf8(&buffer[..bytes_read]) {
|
||||
if let Some(on_request) = &*on_request.lock().unwrap() {
|
||||
// TODO: support proper error handling
|
||||
if let Some(on_request) =
|
||||
&*on_request.lock().unwrap_or_else(|e| e.into_inner())
|
||||
{
|
||||
let request;
|
||||
{
|
||||
let mut lines = request_str.lines();
|
||||
|
Reference in New Issue
Block a user