|
@@ -419,8 +419,8 @@ func (h *Hub) GetOne(channel *regexp.Regexp, cmd string, data []byte) (response
|
|
|
}, 1, 0)
|
|
|
if response == nil {
|
|
|
response = &ResponseData{
|
|
|
- State: config.NO_MATCH,
|
|
|
- Data: []byte(config.NO_MATCH_MSG),
|
|
|
+ State: config.CONNECT_NO_MATCH,
|
|
|
+ Data: []byte(config.CONNECT_NO_MATCH_MSG),
|
|
|
}
|
|
|
}
|
|
|
return
|
|
@@ -435,8 +435,8 @@ func (h *Hub) GetOneWithTimeout(channel *regexp.Regexp, cmd string, data []byte,
|
|
|
}, 1, timeout)
|
|
|
if response == nil {
|
|
|
response = &ResponseData{
|
|
|
- State: config.NO_MATCH,
|
|
|
- Data: []byte(config.NO_MATCH_MSG),
|
|
|
+ State: config.CONNECT_NO_MATCH,
|
|
|
+ Data: []byte(config.CONNECT_NO_MATCH_MSG),
|
|
|
}
|
|
|
}
|
|
|
return
|