File tree 2 files changed +11
-3
lines changed
src/main/java/com/infrared5/rtmpbee
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >com.infrared5.rtmpbee</groupId >
5
5
<artifactId >rtmpbee</artifactId >
6
- <version >3.0 .0-RELEASE</version >
6
+ <version >3.1 .0-RELEASE</version >
7
7
<packaging >jar</packaging >
8
8
<name >rtmpbee</name >
9
9
<url >http://infrared5.com</url >
Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ public void OnBulletComplete() {
166
166
167
167
@ Override
168
168
public void OnBulletFireFail () {
169
- System .out .println ("Failure for bullet to fire. Possible missing endpoint. Accessing a new endpoint from stream manager." );
170
169
// If is an streammanager-based call, we may need to re-access on a test where the server went down.
171
170
if (this .streamManagerURL != null ) {
171
+ System .out .println ("Failure for bullet to fire. Possible missing endpoint. Accessing a new endpoint from stream manager." );
172
172
try {
173
173
modifyEndpointProperties (this .streamManagerURL );
174
174
// build a bullet
@@ -182,6 +182,13 @@ public void OnBulletFireFail() {
182
182
e .printStackTrace ();
183
183
}
184
184
}
185
+ else {
186
+ int remaining = bulletsRemaining .decrementAndGet ();
187
+ if (remaining <= 0 ) {
188
+ System .out .println ("All bullets expended. Bye Bye." );
189
+ System .exit (1 );
190
+ }
191
+ }
185
192
}
186
193
187
194
/**
@@ -269,7 +276,8 @@ else if (args.length >= 3 && args.length <= 4) {
269
276
else if (args .length < 5 ) {
270
277
System .out .printf ("Incorrect number of args, please pass in the following: \n " + "\n arg[0] = IP Address" + "\n arg[1] = port" + "\n arg[2] = app" + "\n arg[3] = streamName" + "\n arg[4] = numBullets" );
271
278
return ;
272
- } else {
279
+ }
280
+ else {
273
281
System .out .println ("Determined its an original attack..." );
274
282
url = args [0 ];
275
283
port = Integer .parseInt (args [1 ]);
You can’t perform that action at this time.
0 commit comments