Index: Source/modules/webdatabase/DatabaseContext.cpp |
diff --git a/Source/modules/webdatabase/DatabaseContext.cpp b/Source/modules/webdatabase/DatabaseContext.cpp |
index b47426087f34c3de5eac6b5fb202ab6bcdc0cca9..456087abd8cf1966d3cf3df6aa1164b1affae824 100644 |
--- a/Source/modules/webdatabase/DatabaseContext.cpp |
+++ b/Source/modules/webdatabase/DatabaseContext.cpp |
@@ -165,11 +165,6 @@ |
return m_databaseThread.get(); |
} |
-bool DatabaseContext::databaseThreadAvailable() |
-{ |
- return m_databaseThread && !m_hasRequestedTermination; |
-} |
- |
void DatabaseContext::stopDatabases() |
{ |
// Though we initiate termination of the DatabaseThread here in |
@@ -182,7 +177,7 @@ |
// m_databaseThread RefPtr destructor will deref and delete the |
// DatabaseThread. |
- if (databaseThreadAvailable()) { |
+ if (m_databaseThread && !m_hasRequestedTermination) { |
TaskSynchronizer sync; |
m_databaseThread->requestTermination(&sync); |
m_hasRequestedTermination = true; |