summaryrefslogtreecommitdiffstats
path: root/cython/lockdown.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/lockdown.pxi')
-rw-r--r--cython/lockdown.pxi2
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/lockdown.pxi b/cython/lockdown.pxi
index f8955e5..be9d25f 100644
--- a/cython/lockdown.pxi
+++ b/cython/lockdown.pxi
@@ -164,7 +164,7 @@ cdef class LockdownClient(PropertyListService):
char* c_service_name = NULL
uint16_t port = 0
- if hasattr(service, '__service_name__') and \
+ if issubclass(service, BaseService) and \
service.__service_name__ is not None \
and isinstance(service.__service_name__, basestring):
c_service_name = <bytes>service.__service_name__