Skip to content

Commit

Permalink
Fixing bug when changing bpm and bpi
Browse files Browse the repository at this point in the history
  • Loading branch information
elieserdejesus committed Jun 27, 2020
1 parent b66f33b commit 34b075d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Common/ninjam/client/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,16 @@ void Service::process(const ConfigChangeNotifyMessage &msg)
auto bpi = msg.getBpi();
auto bpm = msg.getBpm();

setInitialBpmBpi(bpm, bpi);
if (initialized) {
if (bpi != currentServer->getBpi())
setBpi(bpi);

if (bpm != currentServer->getBpm())
setBpm(bpm);
}
else {
setInitialBpmBpi(bpm, bpi);
}
}

QTcpSocket * Service::createSocket()
Expand Down

0 comments on commit 34b075d

Please sign in to comment.