SRL Archive - S.M.A.R.T.

[Suggestion] Smart error popup stalls the script


riwu

2014-03-11 08:32:23


When smartSpawnClient() fails, make it return -1 instead of this popup which stalls the script, so that one can opt to make the script retry awhile later.

Brandon

2014-03-11 20:53:59

From: riwu
When smartSpawnClient() fails, make it return -1 instead of this popup which stalls the script, so that one can opt to make the script retry awhile later.



What do you mean return -1? It can't.. That popup is on the Java side and Simba only communicates with the C/C++ side.
You'd have to send the -1 over Smart's socket.. Pretty sure there is a timeout though.. So you can simply get rid of the pop-up I guess.



do {
Sleep(1000);
count++;
} while (!(client=pairClient(pid))&&count<10);

Just remove the popup then from Client.java, recompile it, and the above code from SmartRemote.cpp will take care of the rest.. It'll wait a whole 10 seconds though before it gives up..