]> git.sur5r.net Git - bacula/bacula/commitdiff
Set bwlimit to jcr before sd socket
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 26 Nov 2010 09:44:42 +0000 (10:44 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 26 Nov 2010 09:48:18 +0000 (10:48 +0100)
bacula/src/filed/job.c

index 4b29d077cf99576bbc1bd32074ebe9ff6bc9af09..c42753c482ad7dfb8e67e37f061c6afaf1c7253f 100644 (file)
@@ -495,10 +495,10 @@ static int setbandwidth_cmd(JCR *jcr)
       if(!(cjcr=get_jcr_by_full_name(Job))) {
          dir->fsend(_("2901 Job %s not found.\n"), Job);
       } else {
+         cjcr->max_bandwidth = bw;
          if (cjcr->store_bsock) {
             cjcr->store_bsock->set_bwlimit(bw);
          }
-         cjcr->max_bandwidth = bw;
          free_jcr(cjcr);
       }