diff options
Diffstat (limited to 'cython')
| -rw-r--r-- | cython/lockdown.pxi | 2 |
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): | |||
| 164 | char* c_service_name = NULL | 164 | char* c_service_name = NULL |
| 165 | uint16_t port = 0 | 165 | uint16_t port = 0 |
| 166 | 166 | ||
| 167 | if hasattr(service, '__service_name__') and \ | 167 | if issubclass(service, BaseService) and \ |
| 168 | service.__service_name__ is not None \ | 168 | service.__service_name__ is not None \ |
| 169 | and isinstance(service.__service_name__, basestring): | 169 | and isinstance(service.__service_name__, basestring): |
| 170 | c_service_name = <bytes>service.__service_name__ | 170 | c_service_name = <bytes>service.__service_name__ |
