Skip to content

Commit

Permalink
Fix compatability with older Starboard builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Oct 30, 2024
1 parent de1454d commit f1cccf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/socket/udp_socket_starboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ int UDPSocketStarboard::InternalSendTo(IOBuffer* buf,
int buf_len,
const IPEndPoint* address) {
SbSocketAddress sb_address;
if (!address && !g_socket_extension) {
// Platforms without the socket extension require a destination address.
address = remote_address_.get();
}
if (address && !address->ToSbSocketAddress(&sb_address)) {
int result = ERR_FAILED;
LogWrite(result, NULL, NULL);
Expand Down

0 comments on commit f1cccf8

Please sign in to comment.