goto out;
}
- /**
- * @note
- * To send the pause/resume event to the provider, reverse set its state from here
- */
- slave_set_state(slave, xmonitor_is_paused() ? SLAVE_RESUMED : SLAVE_PAUSED);
-
DbgPrint("Update handle for %s (%d)\n", pkgname, handle);
slave_rpc_update_handle(slave, handle, 1);
} else {
goto out;
}
+ slave_set_state(slave, SLAVE_REQUEST_TO_LAUNCH);
slave_set_pid(slave, pid);
slave_set_valid(slave);
if (handle >= 0) {
/**
* @note
- * To send the pause/resume event to the provider, reverse set its state from here
- */
- slave_set_state(slave, xmonitor_is_paused() ? SLAVE_RESUMED : SLAVE_PAUSED);
-
- /**
- * @note
* In this case, there could not be exists any pended packets.
* But we tried to clear them for a case!
*/
}
if (handle >= 0) {
- /**
- * @note
- * To send the pause/resume event to the provider, reverse set its state from here
- */
- slave_set_state(slave, xmonitor_is_paused() ? SLAVE_RESUMED : SLAVE_PAUSED);
-
slave_rpc_update_handle(slave, handle, 1);
/**
switch (slave->state) {
case SLAVE_REQUEST_TO_DISCONNECT:
- case SLAVE_REQUEST_TO_LAUNCH:
case SLAVE_REQUEST_TO_TERMINATE:
case SLAVE_TERMINATED:
+ ErrPrint("Slave state[%d]\n", slave->state);
return WIDGET_ERROR_INVALID_PARAMETER;
case SLAVE_RESUMED:
case SLAVE_REQUEST_TO_RESUME:
+ ErrPrint("Slave state[%d]\n", slave->state);
return WIDGET_ERROR_NONE;
default:
break;
switch (slave->state) {
case SLAVE_REQUEST_TO_DISCONNECT:
- case SLAVE_REQUEST_TO_LAUNCH:
case SLAVE_REQUEST_TO_TERMINATE:
case SLAVE_TERMINATED:
+ ErrPrint("Slave state[%d]\n", slave->state);
return WIDGET_ERROR_INVALID_PARAMETER;
case SLAVE_PAUSED:
case SLAVE_REQUEST_TO_PAUSE:
+ ErrPrint("Slave state[%d]\n", slave->state);
return WIDGET_ERROR_NONE;
default:
break;