mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
plug leak
This commit is contained in:
parent
2afce586a3
commit
0cd0bd4c03
1 changed files with 3 additions and 2 deletions
|
@ -1386,7 +1386,7 @@ public class BTService extends XWJIService {
|
||||||
Assert.assertTrue( !s_sockets.containsKey(code) || !BuildConfig.DEBUG );
|
Assert.assertTrue( !s_sockets.containsKey(code) || !BuildConfig.DEBUG );
|
||||||
s_sockets.put( code, socket );
|
s_sockets.put( code, socket );
|
||||||
}
|
}
|
||||||
Log.d( TAG, "makeRefFor(%s) => %d (size: %d)", socket, code, s_sockets.size() );
|
// Log.d( TAG, "makeRefFor(%s) => %d (size: %d)", socket, code, s_sockets.size() );
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1413,8 +1413,9 @@ public class BTService extends XWJIService {
|
||||||
} catch ( IOException ex ) {
|
} catch ( IOException ex ) {
|
||||||
Log.ex( TAG, ex );
|
Log.ex( TAG, ex );
|
||||||
}
|
}
|
||||||
|
s_sockets.remove( ref );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.d( TAG, "closeForRef(%d) (size: %d)", ref, s_sockets.size() );
|
// Log.d( TAG, "closeForRef(%d) (size: %d)", ref, s_sockets.size() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue