Skip to content

Commit

Permalink
Merge pull request #2834 from mitre/bleepbop/virts-4695/resolve-manx-…
Browse files Browse the repository at this point in the history
…bugs

[VIRTS-4695] Fix Manx Console Error/Timing Error
  • Loading branch information
elegantmoose committed Oct 25, 2023
2 parents 4643964 + 636973c commit e6d712b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/contacts/contact_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async def send(self, session_id: int, cmd: str, timeout: int = 60) -> Tuple[int,
try:
conn = next(i.connection for i in self.sessions if i.id == int(session_id))
conn.send(str.encode(' '))
time.sleep(0.01)
conn.send(str.encode('%s\n' % cmd))
response = await self._attempt_connection(session_id, conn, timeout=timeout)
response = json.loads(response)
Expand Down

0 comments on commit e6d712b

Please sign in to comment.