result_sem.release();
}
// second try and get via magnet
final MagnetPlugin magnet_plugin = getMagnetPlugin();
if ( magnet_plugin == null ){
synchronized( result ){
if ( result[0] == null ){
result[0] = new IPCException( "Magnet plugin unavailable" );
}
}
result_sem.release();
}else{
new AEThread2( "BuddyPlugin:mag", true )
{
private boolean result_set;
public void
run()
{
try{
if ( buddy.isOnline( true )){
Thread.sleep(10*1000);
}
synchronized( result ){
if ( result[0] instanceof byte[] ){
setResult( null );
return;
}
}
byte[] torrent_data = magnet_plugin.download(
new MagnetPluginProgressListener()
{
public void
reportSize(
long size )