~jontai/openvista-gtm-integration/bug526734

« back to all changes in this revision

Viewing changes to mumps/HLCSTCP1.m

  • Committer: Jonathan Tai
  • Date: 2010-02-24 08:43:44 UTC
  • Revision ID: jon.tai@medsphere.com-20100224084344-kn3c12j02hmfm2j6
You can't $G($ZEOF) -- you get "Variable expected in this context" from the compiler.  This causes the error trap to get invoked, and the error trap is set to "D UNWIND^%ZTER", which ignores the error and makes the interface go back into a listening state without logging an error, which is why we thought it was working.

Since $D seems to be set whenever $ZEOF is set, let's try removing the check for $ZEOF entirely and just check $D.  The $EC check should prevent this check from being overly broad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
 ;
166
166
 ; If the connection is broken, but no message was being received, just go back to listening.
167
167
 ; See <https://launchpad.net/bugs/526609> and <https://launchpad.net/bugs/526734>
168
 
 I $EC="",$D!$G($ZEOF),'$D(HLMSG) D UNWIND^%ZTER Q
 
168
 I $EC="",$D,'$D(HLMSG) D UNWIND^%ZTER Q
169
169
 ;
170
170
 S HLCSOUT=1 D ^%ZTER,CC("Error")
171
171
 D UNWIND^%ZTER