* Prevent UI freeze because of unhandle exception
* Make sure CacheReset is always run on client
This commit is contained in:
parent
6c3905fe20
commit
b157d7c608
|
|
@ -245,7 +245,7 @@ public class ProcessCtl extends Thread
|
||||||
rs.close();
|
rs.close();
|
||||||
pstmt.close();
|
pstmt.close();
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure") + " " + e.getLocalizedMessage(), true);
|
m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure") + " " + e.getLocalizedMessage(), true);
|
||||||
unlock();
|
unlock();
|
||||||
|
|
@ -447,7 +447,11 @@ public class ProcessCtl extends Thread
|
||||||
{
|
{
|
||||||
log.fine(m_pi.toString());
|
log.fine(m_pi.toString());
|
||||||
boolean started = false;
|
boolean started = false;
|
||||||
if (DB.isRemoteProcess())
|
|
||||||
|
//CacheReset must execute on client
|
||||||
|
boolean resetCache = CacheReset.class.getName().equals(m_pi.getClassName());
|
||||||
|
|
||||||
|
if (DB.isRemoteProcess() && !resetCache)
|
||||||
{
|
{
|
||||||
Server server = CConnection.get().getServer();
|
Server server = CConnection.get().getServer();
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue