Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void Server::CloseHandler(ClientHandler *handler) {
// the client.
void Server::ListenerCoroutine(toolbelt::UnixSocket &listen_socket) {
for (;;) {
if (!running_) {
if (shutting_down_) {
// Keep this running until all other coroutines have completed.
// This is to make sure that other coroutines that have publisher
// and subscribers are able to connect to the server and delete them
Expand Down
1 change: 0 additions & 1 deletion server/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ class Server {
std::string socket_name_;
uint64_t session_id_;
std::vector<std::unique_ptr<ClientHandler>> client_handlers_;
bool running_ = false;
std::string server_id_;
std::string hostname_;
std::string interface_;
Expand Down
Loading