commands: Adding "disconnect" command to force socket shutdown (#1057)
* commands: Adding "disconnect" command to force socket shutdown * Rename to `reconnect` * Add documentation to README Related to: #628 #1033 --------- Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
@@ -269,6 +269,10 @@ impl CommandManager {
|
||||
log::info!("Exit code: {}", result);
|
||||
Ok(None)
|
||||
}
|
||||
Command::Reconnect => {
|
||||
self.spotify.shutdown();
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
Command::Queue
|
||||
| Command::PlayNext
|
||||
|
||||
Reference in New Issue
Block a user