Skip to content

Commit d79d8da

Browse files
committed
fix a few bugs
1 parent 49f7835 commit d79d8da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

execution.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,15 @@ struct recv_op : operation_base {
481481
// May be completing concurrently on another thread already.
482482
if (stopPossible) {
483483
// Register the stop callback
484-
stopCallback.emplace(std::move(st), cancel_cb{self});
484+
stopCallback.emplace(std::move(st), cancel_cb{*this});
485485

486486
// Mark as 'completed'
487487
if (ready.load(std::memory_order_acquire) ||
488488
ready.exchange(true, std::memory_order_acq_rel)) {
489489
// Already completed on another thread
490490
stopCallback.reset();
491491

492-
BOOL ok = WSAGetOverlappedResult(sock, (WSAOVERLAPPED*)&self, &bytesTransferred, FALSE, &flags);
492+
BOOL ok = WSAGetOverlappedResult(sock, (WSAOVERLAPPED*)this, &bytesTransferred, FALSE, &flags);
493493
if (ok) {
494494
std::execution::set_value(std::move(receiver), bytesTransferred);
495495
} else {
@@ -695,7 +695,7 @@ struct _then_sender {
695695
}
696696

697697
decltype(auto) get_env() const noexcept {
698-
return get_env(self.s_);
698+
return get_env(s_);
699699
}
700700
};
701701

0 commit comments

Comments
 (0)