mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 16:11:27 +03:00
refact: remote printer, log (#11271)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1569,11 +1569,14 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
// Spawn a new thread to handle the print job.
|
||||
// Or print job will block the ui thread.
|
||||
std::thread::spawn(move || {
|
||||
crate::platform::send_raw_data_to_printer(
|
||||
printer_name,
|
||||
data,
|
||||
)
|
||||
.ok();
|
||||
if let Err(e) =
|
||||
crate::platform::send_raw_data_to_printer(
|
||||
printer_name,
|
||||
data,
|
||||
)
|
||||
{
|
||||
log::error!("Print job error: {}", e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user