taksan/skype-java-api — Issue #13: Skype.isRunning();
Author: Oleg862
Created: 2012-02-29 15:21:26+00:00
State: open

Skype.isRunning() returns true if skype client is running and never returns if client is not running.
There is infinity loop at Win32Connector.127

while(true) {
jni_connect();
long start = System.currentTimeMillis();
if(timeout <= System.currentTimeMillis() - start) {
setStatus(Status.NOT_RUNNING);
}
Status status = getStatus();
if(status != Status.PENDING_AUTHORIZATION && status != Status.NOT_RUNNING) {
return status;
}
Thread.sleep(1000);
}