The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

MikeHT (137) [Avatar] Offline
When I run this test, the message "Shutting down" from CreditCardProcessor.shutdown() comes out twice. Anyone else notice this and know why?
Kostis Kapelonis (63) [Avatar] Offline

You have found a bug in the code! Congrats!

The reason is that the Billable basket calls shutdown by itself.

So you see the message twice. Once from the Autoclose feature and once from the basket.

I will try to fix it!

Thank you.
Kostis Kapelonis (63) [Avatar] Offline

I have fixed the bug

If you now get the latest version of the code from git and run the test again you should see the message printed only once

Thank you