diff options
Diffstat (limited to 'mist/debugger.go')
-rw-r--r-- | mist/debugger.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mist/debugger.go b/mist/debugger.go index a9086921d..8f3fc6751 100644 --- a/mist/debugger.go +++ b/mist/debugger.go @@ -94,9 +94,7 @@ func (self *DebuggerWindow) ClearLog() { } func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, dataStr string) { - if !self.Db.done { - self.Db.Q <- true - } + self.Stop() defer func() { if r := recover(); r != nil { @@ -186,6 +184,12 @@ func (self *DebuggerWindow) Continue() { self.Next() } +func (self *DebuggerWindow) Stop() { + if !self.Db.done { + self.Db.Q <- true + } +} + func (self *DebuggerWindow) ExecCommand(command string) { if len(command) > 0 { cmd := strings.Split(command, " ") |