mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-03 04:52:14 +01:00
Fix FlushSocket() error check.
This commit is contained in:
1 parent
3c1566b9a7
commit
f26d95dba1
1 file changed
+1
-1
+1
-1
@@ -111,7 +111,7 @@ bool Buffer::Flush(int fd) {
|
||||
|
||||
bool Buffer::FlushSocket(uintptr_t sock) {
|
||||
for (size_t pos = 0, end = data_.size(); pos < end; ) {
|
||||
size_t sent = send(sock, &data_[pos], end - pos, 0);
|
||||
int sent = send(sock, &data_[pos], end - pos, 0);
|
||||
if (sent < 0) {
|
||||
ELOG("FlushSocket failed");
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user