Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: dbus/bus.cc

Issue 12212133: Remove unnecessary condition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/bus.cc
diff --git a/dbus/bus.cc b/dbus/bus.cc
index 6bd404c96622bc67c0ddbd0254f33cfa86694fa2..1c258d20b19b8949c58178f77253962b3ff74c27 100644
--- a/dbus/bus.cc
+++ b/dbus/bus.cc
@@ -875,11 +875,6 @@ void Bus::OnConnectionDisconnected(DBusConnection* connection) {
return;
DCHECK(!dbus_connection_get_is_connected(connection));
- if (shutdown_completed_)
- return; // Do nothing if the shutdown is already completed.
-
- // Unexpected disconnection, maybe the peer closes the connection.
- DCHECK_EQ(connection, connection_);
ShutdownAndBlock();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698