mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-07 16:43:59 +01:00
websocket: remove explicit disconnect
This commit is contained in:
@@ -13,10 +13,10 @@ AppData::AppData(QObject *parent)
|
||||
auto genesis_timestamp = this->restoreHeights[NetworkType::Type::MAINNET]->data.firstKey();
|
||||
this->txFiatHistory = new TxFiatHistory(genesis_timestamp, Config::defaultConfigDir().path(), this);
|
||||
|
||||
connect(&websocketNotifier()->websocketClient, &WebsocketClient::connectionEstablished, this->txFiatHistory, &TxFiatHistory::onUpdateDatabase);
|
||||
connect(websocketNotifier()->websocketClient, &WebsocketClient::connectionEstablished, this->txFiatHistory, &TxFiatHistory::onUpdateDatabase);
|
||||
connect(this->txFiatHistory, &TxFiatHistory::requestYear, [](int year){
|
||||
QByteArray data = QString(R"({"cmd": "txFiatHistory", "data": {"year": %1}})").arg(year).toUtf8();
|
||||
websocketNotifier()->websocketClient.sendMsg(data);
|
||||
websocketNotifier()->websocketClient->sendMsg(data);
|
||||
});
|
||||
|
||||
connect(websocketNotifier(), &WebsocketNotifier::CryptoRatesReceived, &this->prices, &Prices::cryptoPricesReceived);
|
||||
|
||||
Reference in New Issue
Block a user