Skip to content

Commit 980b8e9

Browse files
committed
qt, rpc: Accept stop RPC even another command is executing
1 parent 916d752 commit 980b8e9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/qt/rpcconsole.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ void RPCConsole::on_lineEdit_returnPressed()
892892
{
893893
QString cmd = ui->lineEdit->text();
894894

895-
if (cmd.isEmpty() || m_is_executing) {
895+
if (cmd.isEmpty()) {
896896
return;
897897
}
898898

@@ -908,6 +908,16 @@ void RPCConsole::on_lineEdit_returnPressed()
908908
return;
909909
}
910910

911+
if (cmd.startsWith("stop")) {
912+
std::string dummy;
913+
RPCExecuteCommandLine(m_node, dummy, cmd.toStdString());
914+
return;
915+
}
916+
917+
if (m_is_executing) {
918+
return;
919+
}
920+
911921
ui->lineEdit->clear();
912922

913923
#ifdef ENABLE_WALLET

0 commit comments

Comments
 (0)