Skip to content

Commit feebdac

Browse files
author
t3ran13
committed
- WSConnectorAbstract.php bug fix
1 parent 60573f6 commit feebdac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Connectors/WebSocket/WSConnectorAbstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ public function doRequest($apiName, array $data, $answerFormat = self::ANSWER_FO
162162
$connection = $this->getConnection();
163163
$connection->send(json_encode($data));
164164

165-
$data = $connection->receive();
166-
$answer = json_decode($data, self::ANSWER_FORMAT_ARRAY === $answerFormat);
165+
$answerRaw = $connection->receive();
166+
$answer = json_decode($answerRaw, self::ANSWER_FORMAT_ARRAY === $answerFormat);
167167

168168
//check that answer has the same id or id from previous tries, else it is answer from other request
169169
if (self::ANSWER_FORMAT_ARRAY === $answerFormat) {

0 commit comments

Comments
 (0)