mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 08:35:35 +08:00
fix waitMessage timeout bug
This commit is contained in:
@@ -145,7 +145,7 @@ class Context implements ContextInterface
|
|||||||
if ($prompt != "") $this->reply($prompt);
|
if ($prompt != "") $this->reply($prompt);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$r = CoMessage::yieldByWS($this->getData(), ["user_id", "self_id", "message_type", onebot_target_id_name($this->getMessageType())]);
|
$r = CoMessage::yieldByWS($this->getData(), ["user_id", "self_id", "message_type", onebot_target_id_name($this->getMessageType())], $timeout);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$r = false;
|
$r = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user