Some bug fixes related to file transfer code and user folders

This commit is contained in:
Mark Vejvoda
2010-04-03 04:30:28 +00:00
parent e56ce605db
commit a0c0be4d65
8 changed files with 84 additions and 20 deletions

View File

@@ -1190,7 +1190,7 @@ void BroadCastSocketThread::execute() {
for( pn = 1; ; pn++ )
{
if(difftime(time(NULL),elapsed) >= 1) {
time_t elapsed = time(NULL);
elapsed = time(NULL);
// Broadcast the packet to the subnet
if( sendto( bcfd, buff, sizeof(buff) + 1, 0 , (struct sockaddr *)&bcaddr, sizeof(struct sockaddr_in) ) != sizeof(buff) + 1 )
{