feat: call start_watcher when connecting to an already running instance
(used to be only when starting the server)
This commit is contained in:
parent
c70527ded5
commit
bebca902df
2 changed files with 7 additions and 0 deletions
|
|
@ -123,6 +123,10 @@ pub trait MinecraftServerHandle: Clone {
|
|||
|
||||
pub trait MinecraftAPI<T> {
|
||||
async fn query_server(&self, addr: &str, port: &str) -> Result<T, OpaqueError>;
|
||||
|
||||
// TODO: move the implementation to here, but
|
||||
/// This should be callable even if there is already a watcher,
|
||||
/// and it should handle the collision itself while returning OK().
|
||||
async fn start_watch(
|
||||
self,
|
||||
server: impl MinecraftServerHandle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue