Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Smartphone/EmailListener/webworks/message/email/impl/EmailList…

…enerManager.java

Per documentation, the callback function should pass the service name and msg object.
  • Loading branch information...
commit 01ebe3fe6e989aa3a75cf9ea1fb0f8fe6624afe1 1 parent 85a1921
rbalsewich authored
View
4 Smartphone/EmailListener/webworks/message/email/impl/EmailListenerManager.java
@@ -176,14 +176,14 @@ protected void notifyEmailReceived(final String eService, final MessageObject ms
//problem
}else{
_vec = (Vector)_listenerHash.get(eService);
- final Object[] callBackObj = { eService, msg};
+
for(int i=0; i < _vec.size(); i++){
final ScriptableFunction sf = (ScriptableFunction)_vec.elementAt(i);
_appObject.invokeLater(new Runnable() {
public void run() {
try {
- sf.invoke(null, new Object[] { callBackObj });
+ sf.invoke(null, new Object[] { eService, msg });
} catch (Exception e) {
System.out.println("Error invoking callback: " + e.getMessage());
Please sign in to comment.
Something went wrong with that request. Please try again.