diff options
-rw-r--r-- | o3000.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -882,12 +882,6 @@ static int get_num_open_sessions(void) { } } return num_sessions; - -// if (i < MAX_NUM_SESSION) { -// printf("%s: Session %d is still open.\n", __func__, i); -// return O3000_ERROR_SESSION_STILL_OPEN; -// } -// return 0; } /** @@ -951,7 +945,7 @@ int __stdcall o3000_disconnect(int id) { o3000_log(session, O3000_LOG_WARNING, "%s: driver is not connected!\n", __func__); return O3000_ERROR_DRV_NOT_CONNECTED; } - + o3000_log(session, O3000_LOG_DEBUG, "%s: disconnect USB device (release interface)\n", __func__); session->cleanup_transfers = TRUE; session->disconnect_dev = TRUE; @@ -965,6 +959,7 @@ int __stdcall o3000_disconnect(int id) { else if(retval != 0) { o3000_log(session, O3000_LOG_ERROR, "%s: releasing interface failed (code %d)\n", __func__, retval); } + return retval; } @@ -1092,7 +1087,7 @@ int __stdcall o3000_connect(int id, int device_nr, char *config_msg, int config_ o3000_log(session, O3000_LOG_ERROR, "%s: sending configuration string failed (code %d)\n", __func__, ret); } } - + /* * Finally enter main-loop */ |