call tree_render() only after commands which require it

Saves one call of tree_render for exec, for example
This commit is contained in:
Michael Stapelberg
2011-05-29 12:29:49 +02:00
parent 446c9b7313
commit 8acea3d34c
3 changed files with 32 additions and 2 deletions

View File

@ -148,7 +148,6 @@ IPC_HANDLER(command) {
strncpy(command, (const char*)message, message_size);
LOG("IPC: received: *%s*\n", command);
const char *reply = parse_cmd((const char*)command);
tree_render();
free(command);
/* If no reply was provided, we just use the default success message */