Explorar o código

Fixed WebSocket close timeout

Paul-Louis Ageneau %!s(int64=2) %!d(string=hai) anos
pai
achega
2d7c479fcb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/impl/wstransport.cpp

+ 1 - 1
src/impl/wstransport.cpp

@@ -104,7 +104,7 @@ void WsTransport::close() {
 		return;
 	}
 
-	ThreadPool::Instance().schedule(std::chrono::milliseconds(10),
+	ThreadPool::Instance().schedule(std::chrono::seconds(10),
 	                                [this, weak_this = weak_from_this()]() {
 		                                if (auto shared_this = weak_this.lock()) {
 			                                PLOG_DEBUG << "WebSocket close timeout";