Browse Source

Fixed WebSocket close timeout

Paul-Louis Ageneau 2 years ago
parent
commit
2d7c479fcb
1 changed files with 1 additions and 1 deletions
  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";