Fixed singleplayer logout crash due to orphaned mesh worker

Former-commit-id: 2b8c5aa0c906223ac043db8137ad95a0e29407c5
This commit is contained in:
Joshua Barretto 2019-05-13 18:59:47 +01:00
parent e8b6e120dc
commit 8af606e348

View File

@ -157,8 +157,7 @@ impl Terrain {
// Queue the worker thread
client.thread_pool().execute(move || {
send.send(mesh_worker(pos, current_tick, volume, aabb))
.expect("Failed to send chunk mesh to main thread");
let _ = send.send(mesh_worker(pos, current_tick, volume, aabb));
});
todo.active_worker = true;
}