[Pkg-owncloud-commits] [owncloud-client] 262/332: MacOverlays: Minor cleanups.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:07:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 72a25cf6ee32f6e52e675c2b40e95525a37922ac
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Jul 15 17:52:42 2014 +0200

    MacOverlays: Minor cleanups.
---
 .../MacOSX/LiferayNativityFinder/RequestManager.h    |  9 ---------
 .../MacOSX/LiferayNativityFinder/RequestManager.m    | 20 +++++---------------
 2 files changed, 5 insertions(+), 24 deletions(-)

diff --git a/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.h b/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.h
index 6f1f992..9f6e443 100644
--- a/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.h
+++ b/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.h
@@ -18,19 +18,10 @@
 
 @interface RequestManager : NSObject
 {
-	dispatch_queue_t _listenQueue;
-	dispatch_queue_t _callbackQueue;
-	
 	GCDAsyncSocket* _socket;
 
-	NSMutableArray* _connectedListenSockets;
-	NSMutableArray* _connectedCallbackSockets;
-	NSMutableDictionary* _callbackMsgs;
-
 	NSMutableArray* _requestQueue;
 	
-	NSString* _filterFolder;
-
 	BOOL _isRunning;
 	BOOL _isConnected;
 }
diff --git a/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m b/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m
index 64b0295..5b1375c 100644
--- a/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m
+++ b/shell_integration/MacOSX/LiferayNativityFinder/RequestManager.m
@@ -27,8 +27,6 @@ static RequestManager* sharedInstance = nil;
 	if ((self = [super init]))
 	{
 		_socket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
-		
-		_filterFolder = nil;
 
 		_isRunning = NO;
 		_isConnected = NO;
@@ -67,7 +65,7 @@ static RequestManager* sharedInstance = nil;
 - (void)askOnSocket:(NSString*)path query:(NSString*)verb
 {
 	NSString *query = [NSString stringWithFormat:@"%@:%@\n", verb,path];
-	NSLog(@"Query: %@", query);
+	// NSLog(@"Query: %@", query);
 	
 	NSData* data = [query dataUsingEncoding:NSUTF8StringEncoding];
 	[_socket writeData:data withTimeout:5 tag:4711];
@@ -131,6 +129,7 @@ static RequestManager* sharedInstance = nil;
 {
 	NSLog( @"Connected to host successfully!");
 	_isConnected = YES;
+	_isRunning = NO;
 	
 	if( [_requestQueue count] > 0 ) {
 		NSLog( @"We have to empty the queue");
@@ -149,20 +148,11 @@ static RequestManager* sharedInstance = nil;
 {
 	NSLog(@"Socket DISconnected!");
 
+	_isConnected = NO;
+	_isRunning = NO;
 	if( err ) {
 		NSLog(@"ERROR: %@", [err localizedDescription]);
 	}
-	if ([_connectedListenSockets containsObject:socket])
-	{
-		[_connectedListenSockets removeObject:socket];
-
-		[[ContentManager sharedInstance] enableFileIcons:false];
-	}
-
-	if ([_connectedCallbackSockets containsObject:socket])
-	{
-		[_connectedCallbackSockets removeObject:socket];
-	}
 }
 
 
@@ -172,7 +162,7 @@ static RequestManager* sharedInstance = nil;
 	{
 		NSLog(@"Connect Socket!");
 		NSError *err = nil;
-		if (![_socket connectToHost:@"localhost" onPort:33001 error:&err]) // Asynchronous!
+		if (![_socket connectToHost:@"localhost" onPort:33001 withTimeout:5 error:&err]) // Asynchronous!
 		{
 			// If there was an error, it's likely something like "already connected" or "no delegate set"
 			NSLog(@"I goofed: %@", err);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list