Skip to content

Commit

Permalink
Bugfix of killAllConn in dispatch thread
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodunqiao committed Jul 1, 2017
1 parent 7f687ba commit 4333bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pink/src/dispatch_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ PinkConn* DispatchThread::MoveConnOut(int fd) {
bool DispatchThread::KillConn(const std::string& ip_port) {
bool result = false;
for (int i = 0; i < work_num_; ++i) {
result = result || worker_thread_[i]->TryKillConn(ip_port);
result = worker_thread_[i]->TryKillConn(ip_port) || result;
}
return result;
}
Expand Down

0 comments on commit 4333bf6

Please sign in to comment.