diff options
author | Luke Miller <lgdmiller@hotmail.com> | 2010-11-05 13:22:47 +0000 |
---|---|---|
committer | Luke Miller <lgdmiller@hotmail.com> | 2010-11-05 13:22:47 +0000 |
commit | 1c958b0d506f98f5a4056821ca6fa75d880b50ae (patch) | |
tree | f2fb761a9cf2b5dd08d95a4a848867481c4e2757 /workspace/BlaMail/src | |
parent | c57ee288195b0b1f37aeaa0693c560f0593a7f9e (diff) |
Fixed a bug that would cause additional threads to be created due to an unknown data connection status change.
Diffstat (limited to 'workspace/BlaMail/src')
-rw-r--r-- | workspace/BlaMail/src/com/blatech/blamail/BlaMail.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java index b3397eb..e809dda 100644 --- a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java +++ b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java @@ -123,7 +123,14 @@ public class BlaMail extends Activity { //t.interrupt(); //s = new Thread(new StopIdle()); //s.start(); - } + } + break; + default: + if(t != null){ + sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Current state is \"" + state + "\""); + t.destroy(); //not good practice. TODO: fix this! + } + break; } } catch (AddressException e) { // TODO Auto-generated catch block |