Revert "[sdb] Disallow nested invokes."
[mono.git] / mono / mini / debugger-agent.c
index 4582c57d4617b59740e012fd65e9b4d7426d796b..f0891b45658f21e4acc2fb55cb673c0634c07936 100644 (file)
@@ -7013,7 +7013,7 @@ vm_commands (int command, int id, guint8 *p, guint8 *end, Buffer *buf)
                 * Store the invoke data into tls, the thread will execute it after it is
                 * resumed.
                 */
-               if (tls->pending_invoke || tls->invoke)
+               if (tls->pending_invoke)
                        return ERR_NOT_SUSPENDED;
                tls->pending_invoke = g_new0 (InvokeData, 1);
                tls->pending_invoke->id = id;