aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorFlaise <[email protected]>2019-07-29 09:54:58 -0500
committerMatthew Collins <[email protected]>2019-07-30 10:36:45 +0100
commit5ea817b1ffdb796eb6292b780b58e1a14bf4d873 (patch)
tree00ff40b1fd8c6a658ff77fede21464fefb697bf4 /src/server.rs
parentUpdated to support SDK version 1.45 on Mac OS (diff)
downloadsteamworks-rs-5ea817b1ffdb796eb6292b780b58e1a14bf4d873.tar.xz
steamworks-rs-5ea817b1ffdb796eb6292b780b58e1a14bf4d873.zip
Fix for thread contention causing errors on Mac OS and segfaults on Windows
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server.rs b/src/server.rs
index a7afbb1..122fd53 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -1,6 +1,7 @@
use super::*;
-
use std::net::Ipv4Addr;
+#[cfg(test)]
+use serial_test_derive::serial;
/// The main entry point into the steam client for servers.
///
@@ -234,6 +235,7 @@ impl Server {
}
#[test]
+#[serial]
fn test() {
let (server, single) = Server::init(
[127, 0, 0, 1].into(),
@@ -293,4 +295,4 @@ impl Drop for ServerManager {
sys::SteamGameServer_Shutdown();
}
}
-} \ No newline at end of file
+}