Skip to content

Commit

Permalink
Remove stop in favor or terminate in server crate
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofl committed Jan 4, 2024
1 parent b38bb50 commit 2950381
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/servers/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ impl Server {
Ok(())
}


// pub fn stop(&self){
// // Stop serving, but continues the loop listening
// // to messages to potentially re-start serving
// let mut m = Message::default();
// m.connect = false;
// m.terminate = false;
//
// info!("Stopping {} server", self.protocol.to_string());
// let _ = self.sender.send(m);
// }

pub fn terminate(&self){
// Stop the serving loop to exit the application.
// Mostly required by the headless version (single sessions).
Expand Down

0 comments on commit 2950381

Please sign in to comment.