mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-19 01:50:49 +00:00
lock protect use of backendNotify:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@37884 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
840679cff1
commit
9f3394e3a4
1 changed files with 12 additions and 1 deletions
13
SQLClient.m
13
SQLClient.m
|
@ -3486,7 +3486,18 @@ validName(NSString *name)
|
||||||
format: @"Notification payload is not a string"];
|
format: @"Notification payload is not a string"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[self backendNotify: name payload: more];
|
[lock lock];
|
||||||
|
NS_DURING
|
||||||
|
{
|
||||||
|
[self backendNotify: name payload: more];
|
||||||
|
}
|
||||||
|
NS_HANDLER
|
||||||
|
{
|
||||||
|
[lock unlock];
|
||||||
|
[localException raise];
|
||||||
|
}
|
||||||
|
NS_ENDHANDLER
|
||||||
|
[lock unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) removeObserver: (id)anObserver name: (NSString*)name
|
- (void) removeObserver: (id)anObserver name: (NSString*)name
|
||||||
|
|
Loading…
Reference in a new issue