Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions BLWebSocketsServer/BLWebSocketsServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ static int callback_http(struct libwebsocket_context *context,
@interface BLWebSocketsServer()

@property (nonatomic, assign, readwrite) BOOL isRunning;
@property (nonatomic, assign) dispatch_source_t timer;
@property (nonatomic, assign) dispatch_queue_t networkQueue;
@property (nonatomic, retain) dispatch_source_t timer;
@property (nonatomic, retain) dispatch_queue_t networkQueue;
/* Context representing the server */
@property (nonatomic, assign) struct libwebsocket_context *context;
@property (nonatomic, strong) BLAsyncMessageQueue *asyncMessageQueue;
Expand Down Expand Up @@ -164,7 +164,7 @@ - (void)stopWithCompletionBlock:(void (^)())completionBlock {
}

- (void)cleanup {
dispatch_release(self.timer);
// dispatch_release(self.timer);
[self destroyContext:self.context];
self.context = NULL;
[self.asyncMessageQueue reset];
Expand Down