Fix panics on shutdown (Fixes #15)

This commit is contained in:
Thinkofname 2016-03-20 12:21:10 +00:00
parent fd4df88c32
commit 4524cb31e2
1 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,10 @@ fn build_func(id: usize, textures: Arc<RwLock<render::TextureManager>>, work_rec
let BuildReq {
snapshot,
position,
} = work_recv.recv().unwrap();
} = match work_recv.recv() {
Ok(val) => val,
Err(_) => return,
};
let mut solid_buffer = vec![];
let mut solid_count = 0;