fail
This commit is contained in:
@@ -143,8 +143,8 @@ bool PICloudServer::Client::closeDevice() {
|
||||
|
||||
|
||||
int PICloudServer::Client::readDevice(void * read_to, int max_size) {
|
||||
if (!is_connected) return 0;
|
||||
int sz = 0;
|
||||
if (!is_connected) return -1;
|
||||
int sz = -1;
|
||||
mutex_buff.lock();
|
||||
cond_buff.wait(mutex_buff, [this](){return !buff.isEmpty() || !is_connected;});
|
||||
if (is_connected) {
|
||||
|
||||
Reference in New Issue
Block a user