mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix panic for macos
This commit is contained in:
parent
68168b0ae4
commit
018d03d860
@ -116,9 +116,6 @@ fn main() {
|
||||
.unwrap()
|
||||
};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
dispatch::Queue::main().sync(mbox);
|
||||
|
||||
// On windows we need to spawn a thread as the msg doesn't work otherwise
|
||||
#[cfg(target_os = "windows")]
|
||||
std::thread::spawn(move || {
|
||||
@ -126,7 +123,7 @@ fn main() {
|
||||
})
|
||||
.join();
|
||||
|
||||
#[cfg(all(not(target_os = "macos"), not(target_os = "windows")))]
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
mbox();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user