mirror of
https://github.com/makew0rld/amfora.git
synced 2024-06-01 18:31:08 +00:00
Use goroutines for Error/Info calls
This commit is contained in:
parent
774554ac22
commit
f13018bded
|
@ -22,12 +22,12 @@ func CustomCommand(num int, url string) {
|
|||
if len(cmd) > 0 {
|
||||
msg, err := command.RunCommand(cmd, url)
|
||||
if err != nil {
|
||||
Error("Command Error", err.Error())
|
||||
go Error("Command Error", err.Error())
|
||||
return
|
||||
}
|
||||
Info(msg)
|
||||
go Info(msg)
|
||||
} else {
|
||||
Error("Command Error", "Command "+strconv.Itoa(num)+" not defined")
|
||||
go Error("Command Error", "Command "+strconv.Itoa(num)+" not defined")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user