mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
only bail if the worker is done on longRunningTask, already running must always run
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
if ( event == "longRunningTask" || event == "alreadyRunning")
|
||||
{
|
||||
if ( worker.isDone() )
|
||||
if ( worker.isDone() && event=="longRunningTask" )
|
||||
return;
|
||||
|
||||
if ( tableName.equals((String)context.get("currentTable")) &&
|
||||
@@ -63,10 +63,10 @@
|
||||
|
||||
DB.Result tables = db.execute("show full columns from `" + arg("dbName") + "`.`" + arg("tableName") + "`");
|
||||
|
||||
/*try
|
||||
try
|
||||
{
|
||||
Thread.sleep(5000);
|
||||
} catch (Exception e) {}*/
|
||||
} catch (Exception e) {}
|
||||
|
||||
publish(tables);
|
||||
|
||||
|
||||
@@ -18,11 +18,14 @@
|
||||
|
||||
if (event == "longRunningTask" || event == "alreadyRunning" )
|
||||
{
|
||||
if ( worker.isDone() )
|
||||
if ( worker.isDone() && event == "longRunningTask" )
|
||||
return;
|
||||
|
||||
log.info("currentDB: " + dbName + "=" + context.get("currentDB"));
|
||||
|
||||
if ( dbName.equals((String)context.get("currentDB")))
|
||||
{
|
||||
log.info("updating banner");
|
||||
banner.setText("Database " + dbName + ": (loading)");
|
||||
banner = context.get("/mainTabs/Query/toolbar/banner");
|
||||
banner.setText("SQL query on database: " + dbName);
|
||||
@@ -51,10 +54,10 @@
|
||||
|
||||
DB.Result databases = db.execute("show table status from `" + arg("dbName") + "`");
|
||||
|
||||
/*try
|
||||
try
|
||||
{
|
||||
Thread.sleep(10000);
|
||||
} catch (Exception e) {}*/
|
||||
} catch (Exception e) {}
|
||||
|
||||
publish(databases);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user