mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-05-01 20:43:06 +03:00
[cdc_stream] Implement stop-service command (#29)
Implements cdc_stream stop-service. Also fixes an issue in the BackgroundService implementation where Exit() would deadlock since server shutdown waits for all RPCs to exit.
This commit is contained in:
@@ -12,6 +12,7 @@ cc_binary(
|
||||
":start_command",
|
||||
":start_service_command",
|
||||
":stop_command",
|
||||
":stop_service_command",
|
||||
"//common:log",
|
||||
"//common:path",
|
||||
],
|
||||
@@ -40,6 +41,18 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "stop_service_command",
|
||||
srcs = ["stop_service_command.cc"],
|
||||
hdrs = ["stop_service_command.h"],
|
||||
deps = [
|
||||
":asset_stream_config",
|
||||
":background_service_client",
|
||||
":base_command",
|
||||
":session_management_server",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "start_command",
|
||||
srcs = ["start_command.cc"],
|
||||
|
||||
Reference in New Issue
Block a user