More work on RFSpace source

This commit is contained in:
AlexandreRouma
2022-01-01 05:27:10 +01:00
parent 201a612c19
commit 33914a7316
6 changed files with 313 additions and 126 deletions

View File

@ -178,6 +178,7 @@ private:
if (_this->running) { style::beginDisabled(); }
if (!connected && ImGui::Button("Connect##spyserver_source", ImVec2(menuWidth, 0))) {
try {
if (_this->client) { _this->client.reset(); }
_this->client = spyserver::connect(_this->hostname, _this->port, &_this->stream);
if (!_this->client->waitForDevInfo(3000)) {