Skip to content
Merged
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
3 changes: 1 addition & 2 deletions App/StackExchange.DataExplorer/Current.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public static DataExplorerDatabase DB
cnn = new ProfiledDbConnection(cnn, new ErrorLoggingProfiler(profiler));
}

cnn.Open();
result = DataExplorerDatabase.Create(cnn, 30);
if (Context != null)
{
Expand All @@ -191,7 +190,7 @@ public static void DisposeDB()
db?.Dispose();
Context.Items["DB"] = null;
}
else
// Also clear the call context DB if we ever hit it in a background thread
{
var db = CallContext.GetData("DB") as DataExplorerDatabase;
db?.Dispose();
Expand Down