Loading src/hldsview.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ gameinfo::HldsView::HldsView(const char *addr,int port){ sport = port; saddr = addr; clientSocket = std::make_unique<netplus::udp>(); clientSocket = std::make_unique<netplus::udp>(-1); serverSocket = std::make_unique<netplus::udp>(addr,port,1,0); memset(challange,0,sizeof(challange)); }catch(netplus::NetException &exp){ Loading Loading @@ -73,7 +73,9 @@ gameinfo::HldsView::HldsView(const HldsView &view){ void gameinfo::HldsView::refresh(HldsData &info) { const std::lock_guard<std::mutex> lock(rlock); // clientSocket->connect(saddr,sport); if(clientSocket->fd() == -1){ clientSocket->connect(saddr,sport); } // -------- internal retry loop -------- auto start = std::chrono::steady_clock::now(); Loading Loading
src/hldsview.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ gameinfo::HldsView::HldsView(const char *addr,int port){ sport = port; saddr = addr; clientSocket = std::make_unique<netplus::udp>(); clientSocket = std::make_unique<netplus::udp>(-1); serverSocket = std::make_unique<netplus::udp>(addr,port,1,0); memset(challange,0,sizeof(challange)); }catch(netplus::NetException &exp){ Loading Loading @@ -73,7 +73,9 @@ gameinfo::HldsView::HldsView(const HldsView &view){ void gameinfo::HldsView::refresh(HldsData &info) { const std::lock_guard<std::mutex> lock(rlock); // clientSocket->connect(saddr,sport); if(clientSocket->fd() == -1){ clientSocket->connect(saddr,sport); } // -------- internal retry loop -------- auto start = std::chrono::steady_clock::now(); Loading