diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2022-02-01 15:54:08 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2022-02-01 16:04:00 +0100 |
commit | 700aa89ea99c7d48350fb99c947c60fc02c0323e (patch) | |
tree | 69781ea4ac8cdda7fb7a1743ceb215a4b142ba44 /src/restRequest.py | |
parent | ecd735c9dca3b4f77c99619b46eeb23b9f799a4c (diff) |
#1065 Use getattr when retrieving event socket
If ogClient does not run on windows or linux mode, it does not create a
datagram event socket.
If ogClient runs in virtual or live mode this will cause an error when
calling get_event_socket because the class instance has no member
"event_sock".
Use getattr when retrieving the event socket from ogClient class, if
there is no event socket, then return None.
Fixes 2465ef25b741 (Add event datagram socket)
Diffstat (limited to 'src/restRequest.py')
0 files changed, 0 insertions, 0 deletions