]> granicus.if.org Git - transmission/commitdiff
#846: also handle scrape-then-exit
authorCharles Kerr <charles@transmissionbt.com>
Sun, 6 Apr 2008 16:53:26 +0000 (16:53 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 6 Apr 2008 16:53:26 +0000 (16:53 +0000)
cli/transmissioncli.c

index 4dc68511d0f02659d1123c4d0a10a20ea8e53062..a5736de3552bc9f826c4b4d655bf584ccbea50eb 100644 (file)
@@ -141,7 +141,7 @@ main( int argc, char ** argv )
 
     /* don't bind the port if we're just running the CLI 
      * to get metainfo or to create a torrent */
-    if( showInfo || ( sourceFile != NULL ) )
+    if( showInfo || showScrape || ( sourceFile != NULL ) )
         bindPort = -1;
 
     /* Initialize libtransmission */