diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-08-05 09:46:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 09:46:33 -0500 |
| commit | adca7674d78c73ef2f2bd505bd4652460794826c (patch) | |
| tree | e1a8812a3797b36846b5e00c53e478b938989dc2 /src/slskd/Application/Management/API/Controllers/ServerController.cs | |
| parent | fdded3572f465c2ddc3110c0927711537215fd58 (diff) | |
| parent | d33a280c2307925aa68102beaa2e61a38f8e7e6c (diff) | |
| download | slskd-adca7674d78c73ef2f2bd505bd4652460794826c.tar.gz | |
Merge pull request #140 from slskd/share-hash
Make shared file cache fill asynchronous, enable re-scanning shares at runtime via API
Diffstat (limited to 'src/slskd/Application/Management/API/Controllers/ServerController.cs')
| -rw-r--r-- | src/slskd/Application/Management/API/Controllers/ServerController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Application/Management/API/Controllers/ServerController.cs b/src/slskd/Application/Management/API/Controllers/ServerController.cs index 6468063c..fc47f475 100644 --- a/src/slskd/Application/Management/API/Controllers/ServerController.cs +++ b/src/slskd/Application/Management/API/Controllers/ServerController.cs @@ -50,7 +50,7 @@ namespace slskd.Management.API [ProducesResponseType(403)] public async Task<IActionResult> Connect() { - if (!Management.GetServerState().IsConnected) + if (!Management.ServerState.IsConnected) { await Management.ConnectServerAsync(); } @@ -70,7 +70,7 @@ namespace slskd.Management.API [ProducesResponseType(403)] public IActionResult Disconnect([FromBody] string message) { - if (Management.GetServerState().IsConnected) + if (Management.ServerState.IsConnected) { Management.DisconnectServer(message); } @@ -90,7 +90,7 @@ namespace slskd.Management.API [ProducesResponseType(403)] public IActionResult Get() { - return Ok(Management.GetServerState()); + return Ok(Management.ServerState); } } }
\ No newline at end of file |
