Author: rfm
Date: Thu Jun 23 17:06:05 2016
New Revision: 39912

URL: http://svn.gna.org/viewcvs/gnustep?rev=39912&view=rev
Log:
don't listen/unlisten when not connected

Modified:
    libs/sqlclient/trunk/SQLClient.m

Modified: libs/sqlclient/trunk/SQLClient.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.m?rev=39912&r1=39911&r2=39912&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.m    (original)
+++ libs/sqlclient/trunk/SQLClient.m    Thu Jun 23 17:06:05 2016
@@ -3889,7 +3889,7 @@
 
           [set addObject: name];
           [_names addObject: name];
-          if (0 == count)
+          if (0 == count && YES == connected)
             {
               [self backendListen: name];
             }
@@ -3985,7 +3985,8 @@
                             }
                         }
                       [_names removeObject: name];
-                      if (0 == [_names countForObject: name])
+                      if (YES == connected
+                        && 0 == [_names countForObject: name])
                         {
                           [self backendUnlisten: name];
                         }


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to