mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 05:43:53 +01:00
fix remote source mode
This commit is contained in:
parent
d3a1facba0
commit
4996cc2e27
@ -148,7 +148,7 @@ fn main() {
|
||||
let mut con = TcpStream::connect(addr).unwrap();
|
||||
writeln!(con, "main").unwrap();
|
||||
loop {
|
||||
let cmd = musicdb_lib::server::Command::from_bytes(&mut con).unwrap();
|
||||
let mut cmd = musicdb_lib::server::Command::from_bytes(&mut con).unwrap();
|
||||
use musicdb_lib::server::Action::*;
|
||||
match &cmd.action {
|
||||
// ignore playback and queue commands, and denials
|
||||
@ -184,6 +184,7 @@ fn main() {
|
||||
| Save
|
||||
| ErrorInfo(..) => (),
|
||||
}
|
||||
cmd.seq = 0xFF;
|
||||
database.lock().unwrap().apply_command(cmd, None);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user