Browse Source

Switching to weak_from_this

eric.gressman 2 years ago
parent
commit
42070742b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/tcptransport.cpp

+ 1 - 1
src/impl/tcptransport.cpp

@@ -384,7 +384,7 @@ void TcpTransport::triggerBufferedAmount(size_t amount) {
 }
 
 void TcpTransport::process(PollService::Event event) {
-	auto self = shared_from_this();
+	auto self = weak_from_this().lock();
 	try {
 		switch (event) {
 		case PollService::Event::Error: {