aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/nifs/common/socket_nif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index dd41123939..c3b5976a97 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -14726,7 +14726,7 @@ ERL_NIF_TERM recv_check_retry(ErlNifEnv* env,
SSDBG( descP, ("SOCKET", "recv_check_retry -> SELECT for more\r\n") );
if ((sres = esock_select_read(env, descP->sock, descP, NULL,
- sockRef, descP->currentReader.ref)) < 0) {
+ sockRef, recvRef)) < 0) {
/* Ouch
* Now what? We have copied ref into *its own* environment!
*/
@@ -14864,7 +14864,7 @@ ERL_NIF_TERM recv_check_partial_part(ErlNifEnv* env,
/* SELECT for more data */
sres = esock_select_read(env, descP->sock, descP, NULL,
- sockRef, descP->currentReader.ref);
+ sockRef, recvRef);
if (sres < 0) {
/* Result: {error, Reason}
* Reason: {select_failed, sres, data}