Build compat with Windows
This commit is contained in:
		
							parent
							
								
									960f8d89f5
								
							
						
					
					
						commit
						d006209857
					
				
							
								
								
									
										2
									
								
								.cargo/config.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.cargo/config.toml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| [target.x86_64-pc-windows-gnu] | ||||
| rustflags = "-C link-args=-lssp" # Does does compile without this line | ||||
| @ -2,6 +2,6 @@ pub const VERSION: &str = env!("CARGO_PKG_VERSION"); | ||||
| pub const MOTD: &str = "OPEN BETA (v2)"; | ||||
| 
 | ||||
| /// The time it takes for Spoticord to disconnect when no music is being played
 | ||||
| pub const DISCONNECT_TIME: u64 = 10; | ||||
| pub const DISCONNECT_TIME: u64 = 5 * 60; | ||||
| 
 | ||||
| // pub const MOTD: &str = "some good 'ol music";
 | ||||
|  | ||||
							
								
								
									
										13
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								src/main.rs
									
									
									
									
									
								
							| @ -97,14 +97,13 @@ async fn main() { | ||||
|   let shard_manager = client.shard_manager.clone(); | ||||
|   let cache = client.cache_and_http.cache.clone(); | ||||
| 
 | ||||
|   let mut term: Option<Box<dyn Any + Send>>; | ||||
| 
 | ||||
|   #[cfg(unix)] | ||||
|   { | ||||
|     term = Some(Box::new( | ||||
|       tokio::signal::unix::signal(SignalKind::terminate()).unwrap(), | ||||
|     )); | ||||
|   } | ||||
|   let mut term: Option<Box<dyn Any + Send>> = Some(Box::new( | ||||
|     tokio::signal::unix::signal(SignalKind::terminate()).unwrap(), | ||||
|   )); | ||||
| 
 | ||||
|   #[cfg(not(unix))] | ||||
|   let term: Option<Box<dyn Any + Send>> = None; | ||||
| 
 | ||||
|   // Background tasks
 | ||||
|   tokio::spawn(async move { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 DaXcess
						DaXcess