1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

Update the message log twice as often, and when quitting set libT to stop calling the method to update the log.

This commit is contained in:
Mitchell Livingston 2006-08-22 00:02:44 +00:00
parent 8ab5e78ec2
commit d91cd60504

View file

@ -29,11 +29,11 @@
#define LEVEL_INFO 1
#define LEVEL_DEBUG 2
#define UPDATE_SECONDS 1.0
#define UPDATE_SECONDS 0.5
@interface MessageWindowController (Private)
MessageWindowController * selfReference; //I'm not sure why I can't use self directly
MessageWindowController * selfReference; //I'm not sure why "self" can't be used directly
@end
@ -60,6 +60,8 @@ MessageWindowController * selfReference; //I'm not sure why I can't use self dir
{
[fTimer invalidate];
tr_setMessageFunction(NULL);
[fLock release];
[fBufferArray release];
@ -118,6 +120,9 @@ void addMessage(int level, const char * message)
- (void) updateLog: (NSTimer *) timer
{
if ([fBufferArray count] == 0)
return;
[fLock lock];
NSEnumerator * enumerator = [fBufferArray objectEnumerator];