diff --git a/frameworks/inner/src/bluetooth_socket_outputstream.cpp b/frameworks/inner/src/bluetooth_socket_outputstream.cpp index a7715c64a3c8c4c74cfab2b90a5973a1457558c2..04502003dcca6e396b6376ebfa55cff57ae1ac44 100644 --- a/frameworks/inner/src/bluetooth_socket_outputstream.cpp +++ b/frameworks/inner/src/bluetooth_socket_outputstream.cpp @@ -94,6 +94,7 @@ int OutputStream::Write(const uint8_t *buf, size_t length) if (ret <= 0) { setTimeoutFlag_ = false; HILOGE("socket write exception! ret:%{public}zd errno:%{public}d", ret, errno); + return errno; } return ret; }