File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 93
93
const char * debug_query_string ; /* client-supplied query string */
94
94
95
95
/* Note: whereToSendOutput is initialized for the bootstrap/standalone case */
96
+ #ifdef EMSCRIPTEN
96
97
CommandDest whereToSendOutput = DestRemote ;
98
+ #else
99
+ CommandDest whereToSendOutput = DestDebug ;
100
+ #endif
97
101
98
102
/* flag for logging end of session */
99
103
bool Log_disconnections = false;
@@ -521,12 +525,14 @@ ReadCommand(StringInfo inBuf)
521
525
{
522
526
int result ;
523
527
528
+ #ifdef EMSCRIPTEN
529
+ result = EmscriptenBackend (inBuf );
530
+ #else
524
531
if (whereToSendOutput == DestRemote )
525
- result = EmscriptenBackend (inBuf );
526
- else if (whereToSendOutput == DestDebugJson )
527
- result = EmscriptenBackend (inBuf );
532
+ result = SocketBackend (inBuf );
528
533
else
529
534
result = InteractiveBackend (inBuf );
535
+ #endif
530
536
return result ;
531
537
}
532
538
You can’t perform that action at this time.
0 commit comments