This commit is contained in:
woodser
2019-05-29 16:21:07 -04:00
parent d1b97f3811
commit 8973ba4703
+3 -2
View File
@@ -36,13 +36,14 @@ namespace monero {
void onSyncStart(uint64_t startHeight, MoneroSyncListener* syncListener) {
syncStartHeight = new uint64_t(startHeight);
cout << "Set start height " << startHeight << " vs " << *syncStartHeight << endl;
this->syncListener = syncListener;
updateListening();
}
void onSyncEnd() {
syncStartHeight = nullptr; // TODO: delete first? yes.
delete syncStartHeight;
syncStartHeight = nullptr;
delete syncEndHeight;
syncEndHeight = nullptr;
syncListener = nullptr;
updateListening();