diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ogClient.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ogClient.py b/src/ogClient.py index 29b2ebf..67e0d51 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -35,6 +35,8 @@ class ogClient: self.event_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.event_sock.setblocking(0) self.event_sock.bind(('127.0.0.1', 55885)) + else: + self.event_sock = None if self.CONFIG['samba']['activate']: assert('user' in self.CONFIG['samba']) @@ -48,7 +50,7 @@ class ogClient: return self.sock def get_event_socket(self): - return getattr(self, 'event_sock', None) + return self.event_sock def get_state(self): return self.state |