Chromium Code Reviews| Index: ppapi/proxy/udp_socket_resource_base.cc |
| diff --git a/ppapi/proxy/udp_socket_resource_base.cc b/ppapi/proxy/udp_socket_resource_base.cc |
| index b5c977c3a094a2df67f2cc44892a5a33e10150c2..0e4b083f1ed905fe4f1ef09a4c3cbe3f92c7f683 100644 |
| --- a/ppapi/proxy/udp_socket_resource_base.cc |
| +++ b/ppapi/proxy/udp_socket_resource_base.cc |
| @@ -320,6 +320,9 @@ void UDPSocketResourceBase::OnPluginMsgPushRecvResult( |
| void UDPSocketResourceBase::OnPluginMsgSendToReply( |
| const ResourceMessageReplyParams& params, |
| int32_t bytes_written) { |
| + if (sendto_callbacks_.empty()) |
|
bbudge
2015/01/28 18:07:31
Add a comment that this could happen when the sock
|
| + return; |
| + |
| scoped_refptr<TrackedCallback> callback = sendto_callbacks_.front(); |
| sendto_callbacks_.pop(); |
| if (!TrackedCallback::IsPending(callback)) |