system: Do not send dbg command if dbg hook is not present.

This commit is contained in:
Vincent Lejeune 2015-12-05 00:36:53 +01:00
parent 8e451126ac
commit 6c01658d37

View file

@ -121,7 +121,7 @@ public:
void SendDbgCommand(DbgCommand cmd, class CPUThread* thread = nullptr) void SendDbgCommand(DbgCommand cmd, class CPUThread* thread = nullptr)
{ {
m_cb.send_dbg_command(cmd, thread); if (m_cb.send_dbg_command) m_cb.send_dbg_command(cmd, thread);
} }
// Returns a future object associated with the result of the function called from the GUI thread // Returns a future object associated with the result of the function called from the GUI thread