[HybridWebApp] updated HybridWebApp sources tizen_2.2 2.2.1_release
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 18 Oct 2013 14:20:57 +0000 (16:20 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 18 Oct 2013 14:20:57 +0000 (16:20 +0200)
Change-Id: I9e64fdd4c2158f1bf34d2a1266c47ebb414b0eef

js/main.js

index 15a2e9b..9a313b8 100644 (file)
@@ -71,12 +71,14 @@ function startMessagePort() {
                        onReceive(data, remote);
                });
        } catch (e) {
+               gLocalMessagePort = null;
                writeToScreen(e.name);
        }
 
        try {
                gRemoteMessagePort = tizen.messageport.requestRemoteMessagePort(gServiceAppId, gServicePortName);
        } catch (e) {
+               gRemoteMessagePort = null;
                writeToScreen(e.name);
        }